From a32f928fc8f6c902ff424c1a30c5510213c23bbd Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Sun, 16 Dec 2012 17:03:23 +0100 Subject: [PATCH] add tag_name to cache invariant --- app/views/contexts/_context.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/contexts/_context.html.erb b/app/views/contexts/_context.html.erb index 6e7b6ee9..5683779f 100644 --- a/app/views/contexts/_context.html.erb +++ b/app/views/contexts/_context.html.erb @@ -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 %>
">