projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70bb55b
)
Generate cache paths in the same way as the normal expire_action routine
author
Tom Hughes
<tom@compton.nu>
Mon, 11 Jan 2010 18:24:55 +0000
(18:24 +0000)
committer
Tom Hughes
<tom@compton.nu>
Mon, 11 Jan 2010 18:24:55 +0000
(18:24 +0000)
so that the escaping matches correctly.
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index 53ad1e901c8d41187d3e588c95b8cd72161ea290..dc17a21628b91885d46729fd27fd85d6bdb854e7 100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-242,7
+242,7
@@
class ApplicationController < ActionController::Base
##
# extend expire_action to expire all variants
def expire_action(options = {})
- path =
fragment_cache_key(options
).gsub('?', '.').gsub(':', '.')
+ path =
ActionCachePath.path_for(self, options, false
).gsub('?', '.').gsub(':', '.')
expire_fragment(Regexp.new(Regexp.escape(path) + "\\..*"))
end