From 7381dad23bcb737d5b08a73027eda9a80c3ef293 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 11 Jan 2010 18:24:55 +0000 Subject: [PATCH] Generate cache paths in the same way as the normal expire_action routine so that the escaping matches correctly. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 53ad1e901..dc17a2162 100644 --- 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 -- 2.43.2