From: Tom Hughes Date: Mon, 11 Jan 2010 18:24:55 +0000 (+0000) Subject: Generate cache paths in the same way as the normal expire_action routine X-Git-Tag: live~6371^2~20 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/7381dad23bcb737d5b08a73027eda9a80c3ef293?ds=sidebyside Generate cache paths in the same way as the normal expire_action routine so that the escaping matches correctly. --- 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