Fix caching with different types

This commit is contained in:
Mark Veidemanis 2023-02-15 07:20:53 +00:00
parent b6952767d5
commit bc60eabb05
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
15 changed files with 15 additions and 15 deletions

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Account' as last %} {% get_last_invalidation 'core.Account' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_accounts request.user.id object_list last %} {% cache 600 objects_accounts request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.AssetGroup' as last %} {% get_last_invalidation 'core.AssetGroup' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_assetgroups_field request.user.id object_list last %} {% cache 600 objects_assetgroups_field request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.AssetGroup' 'core.AssetRule' as last %} {% get_last_invalidation 'core.AssetGroup' 'core.AssetRule' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_assetgroups request.user.id object_list last %} {% cache 600 objects_assetgroups request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.AssetRule' as last %} {% get_last_invalidation 'core.AssetRule' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_assetrules request.user.id object_list last %} {% cache 600 objects_assetrules request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Callback' as last %} {% get_last_invalidation 'core.Callback' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_callbacks request.user.id object_list last %} {% cache 600 objects_callbacks request.user.id object_list type last %}
<table class="table is-fullwidth is-hoverable" id="callbacks-table"> <table class="table is-fullwidth is-hoverable" id="callbacks-table">
<thead> <thead>
<th>id</th> <th>id</th>

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Hook' as last %} {% get_last_invalidation 'core.Hook' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_hooks request.user.id object_list last %} {% cache 600 objects_hooks request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cache %} {% load cache %}
{% block tbody %} {% block tbody %}
{% cache 600 object_position_detail request.user.id object %} {% cache 600 object_position_detail request.user.id object type %}
{% for key, item in object.items %} {% for key, item in object.items %}
<tr> <tr>
{% if key == 'trade_ids' %} {% if key == 'trade_ids' %}

View File

@ -1,6 +1,6 @@
{% load cache %} {% load cache %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_positions request.user.id object_list %} {% cache 600 objects_positions request.user.id object_list type %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -1,6 +1,6 @@
{% load cache %} {% load cache %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_profit request.user.id object_list %} {% cache 600 objects_profit request.user.id object_list type %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.RiskModel' as last %} {% get_last_invalidation 'core.RiskModel' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_risk request.user.id object_list last %} {% cache 600 objects_risk request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Signal' as last %} {% get_last_invalidation 'core.Signal' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_signals request.user.id object_list last %} {% cache 600 objects_signals request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Strategy' as last %} {% get_last_invalidation 'core.Strategy' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_strategies request.user.id object_list last %} {% cache 600 objects_strategies request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Trade' as last %} {% get_last_invalidation 'core.Trade' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_trades request.user.id object_list last %} {% cache 600 objects_trades request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.TradingTime' as last %} {% get_last_invalidation 'core.TradingTime' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_tradingtimes request.user.id object_list last %} {% cache 600 objects_tradingtimes request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"

View File

@ -2,7 +2,7 @@
{% load cachalot cache %} {% load cachalot cache %}
{% get_last_invalidation 'core.Strategy' as last %} {% get_last_invalidation 'core.Strategy' as last %}
{% include 'mixins/partials/notify.html' %} {% include 'mixins/partials/notify.html' %}
{% cache 600 objects_trenddirections request.user.id object_list last %} {% cache 600 objects_trenddirections request.user.id object_list type last %}
<table <table
class="table is-fullwidth is-hoverable" class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table" hx-target="#{{ context_object_name }}-table"