diff options
author | Francis Irving <francis@mysociety.org> | 2010-05-19 17:15:34 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-05-19 17:15:34 +0100 |
commit | 8aa2a33c3ada88ac9f36dda33862eafc92e16b72 (patch) | |
tree | 3177f5c7879454b8b57f3673ee5707b947eedf82 /app/helpers/application_helper.rb | |
parent | 857a61ddf2b816d5d9599a8f14a71c3d9826e99c (diff) |
Use our algorithm for view cache fragments too
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7cc0b0e5d..08908abee 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -59,5 +59,11 @@ module ApplicationHelper t = highlight_words(t, words, html) return t end + + # Use our own algorithm for finding path of cache + def foi_cache(name = {}, options = nil, &block) + name = @controller.foi_fragment_cache_part_path(name) + @controller.fragment_for(output_buffer, name, options, &block) + end end |