mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
invalidate cache of todo every day so stalenes and due date can be regenerated
This commit is contained in:
parent
ff06f418e8
commit
ea0d4eb0c7
1 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,9 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag'
|
|||
@z_index_counter = @z_index_counter - 1 # for IE z-index bug
|
||||
@rec_depth=0 # to prevent stack overflow on large dependency trees, see _successor.html.erb
|
||||
|
||||
cache todo do
|
||||
# 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 [todo, current_user.date.strftime("%Y%m%d")] do
|
||||
%>
|
||||
<div id="<%= dom_id(todo) %>" class="item-container">
|
||||
<div id="<%= dom_id(todo, 'line') %>" class="item-show">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue