aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb6
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