Commit 32c0459c15344dfc0a843e3b4f530f2adbd9b6fd
1 parent
756bf109
Exists in
master
Fix block cache key
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
lib/pairwise_plugin/questions_group_list_block.rb
... | ... | @@ -123,4 +123,10 @@ class PairwisePlugin::QuestionsGroupListBlock < Block |
123 | 123 | def embedable? |
124 | 124 | true |
125 | 125 | end |
126 | + | |
127 | + def cache_key_with_person(params = {}, user = nil, language = 'en') | |
128 | + cache_key_without_person + (user && created_by == user ? "-#{user.identifier}" : '') | |
129 | + end | |
130 | + alias_method_chain :cache_key, :person | |
131 | + | |
126 | 132 | end | ... | ... |