Fix caching with different types

master
Mark Veidemanis 1 year ago
parent b6952767d5
commit bc60eabb05
Signed by: m
GPG Key ID: 5ACFCEED46C0904F

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Account' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.AssetGroup' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.AssetGroup' 'core.AssetRule' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.AssetRule' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Callback' as last %}
{% 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">
<thead>
<th>id</th>

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Hook' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cache %}
{% 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 %}
<tr>
{% if key == 'trade_ids' %}

@ -1,6 +1,6 @@
{% load cache %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -1,6 +1,6 @@
{% load cache %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.RiskModel' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Signal' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Strategy' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Trade' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.TradingTime' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

@ -2,7 +2,7 @@
{% load cachalot cache %}
{% get_last_invalidation 'core.Strategy' as last %}
{% 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
class="table is-fullwidth is-hoverable"
hx-target="#{{ context_object_name }}-table"

Loading…
Cancel
Save