From 93b0a2557ca40112c4f23fe252a770cd1eabb253 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Mon, 29 Apr 2013 09:58:21 +0200 Subject: [PATCH] add verbose action description to cache invariant to handle changes in this setting. fixes #1409 --- app/views/todos/_todo.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/todos/_todo.html.erb b/app/views/todos/_todo.html.erb index 2d28adc2..aae9cfd2 100644 --- a/app/views/todos/_todo.html.erb +++ b/app/views/todos/_todo.html.erb @@ -10,7 +10,7 @@ parameters += "&_tag_name=#{@tag_name}" if @source_view == 'tag' # invalidate the cache every day because of staleness or # rendering of "due in x days" that change without touching updated at of the todo # also make different caches per source_view to handle difference in showing [C] and [P] -cache [todo, current_user.date.strftime("%Y%m%d"), @source_view] do +cache [todo, current_user.date.strftime("%Y%m%d"), @source_view, current_user.prefs.verbose_action_descriptors] do %>