add tag_name to cache invariant

This commit is contained in:
Reinier Balt 2012-12-16 17:03:23 +01:00
parent 5454ba385f
commit a32f928fc8

View file

@ -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>