Fix Caching
Fix the caching of pages with "." in their names. This was busted.
This commit is contained in:
parent
8f1cd5010b
commit
49e89d0f85
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ module CachingStuff
|
|||
module Caching
|
||||
module Fragments
|
||||
def fragment_cache_key(key)
|
||||
ActiveSupport::Cache.expand_cache_key(key.is_a?(Hash) ? url_for(key.merge(:host=>"")).split(":///").last : key.split('/')[1..-1].join('/'), :views)
|
||||
ActiveSupport::Cache.expand_cache_key(key.is_a?(Hash) ? url_for(key.merge(:host=>"")).split(":///").last : key.split('/')[1..-1].join('/').gsub(/\?format=.*/,''), :views)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue