Generate cache paths in the same way as the normal expire_action routine
authorTom Hughes <tom@compton.nu>
Mon, 11 Jan 2010 18:24:55 +0000 (18:24 +0000)
committerTom 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

index 53ad1e901c8d41187d3e588c95b8cd72161ea290..dc17a21628b91885d46729fd27fd85d6bdb854e7 100644 (file)
@@ -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