mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
add tag_name to cache invariant
This commit is contained in:
parent
5454ba385f
commit
a32f928fc8
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
@not_done = @not_done_todos.select {|t| t.context_id == context.id }
|
||||
# invalidate the cache every day because of staleness or
|
||||
# rendering of "due in x days" that change without touching updated at of the todo
|
||||
cache [context, @source_view, current_user.date.strftime("%Y%m%d")] do
|
||||
cache [context, @source_view, current_user.date.strftime("%Y%m%d"), @tag_name] do
|
||||
%>
|
||||
<div id="c<%= context.id %>" class="container context" style="display:<%= (collapsible && @not_done.empty?) ? "none" : "block" %>">
|
||||
<h2>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue