Fix caching with different types
This commit is contained in:
parent
b6952767d5
commit
bc60eabb05
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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' %}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue