From 8aa2a33c3ada88ac9f36dda33862eafc92e16b72 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Wed, 19 May 2010 17:15:34 +0100 Subject: Use our algorithm for view cache fragments too --- app/helpers/application_helper.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/helpers/application_helper.rb') 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 -- cgit v1.2.3