add verbose action description to cache invariant to handle changes in this setting. fixes #1409

This commit is contained in:
Reinier Balt 2013-04-29 09:58:21 +02:00
parent 66f7fe9f2b
commit 86ceeca0ba

View file

@ -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
%>
<div id="<%= dom_id(todo) %>" class="item-container">
<div id="<%= dom_id(todo, 'line') %>" class="item-show">