Commit 756bf10918891973b8fb7850de66e5440c736c2a
1 parent
ce9f73e7
Exists in
master
Fix pairwise cache key
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
lib/pairwise_plugin/pairwise_content.rb
... | ... | @@ -334,6 +334,11 @@ class PairwisePlugin::PairwiseContent < Article |
334 | 334 | parent.kind_of?(PairwisePlugin::PairwiseGroup) |
335 | 335 | end |
336 | 336 | |
337 | + def cache_key_with_person(params = {}, user = nil, language = 'en') | |
338 | + cache_key_without_person + (user && created_by == user ? "-#{user.identifier}" : '') | |
339 | + end | |
340 | + alias_method_chain :cache_key, :person | |
341 | + | |
337 | 342 | private |
338 | 343 | |
339 | 344 | def set_next_prompt(prompt) | ... | ... |