diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0b9b906f2..5e1264b4a 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -24,6 +24,7 @@ module ApplicationHelper :target => "_blank" end + # Produces a cache key for uniquely identifying cached fragments. def cache_key_for(klass, identifier="all") count = klass.count max_updated_at = klass.maximum(:updated_at).try(:utc).try(:to_s, :number)