aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/admin_controller.rb
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-05-18 10:54:50 +0100
committerFrancis Irving <francis@mysociety.org>2010-05-18 10:54:50 +0100
commitba0bf5c3feb038a3e93a46b3c6790d467d298357 (patch)
tree9dd8b3431576c2f7644470ef0144b6724307fd7b /app/controllers/admin_controller.rb
parenta2b8a05d128efe5b4e86b7c9be79e3e313755372 (diff)
Generate path for fragment cache in central place
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r--app/controllers/admin_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 7f8cfbd67..48e223cea 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -31,7 +31,7 @@ class AdminController < ApplicationController
# change the URL.
# * We could use expire_fragment with a Regexp, but it walks the whole
# cache which is insanely slow
- cache_subpath = File.join(self.cache_store.cache_path, "views/request/#{info_request.id}")
+ cache_subpath = File.join(self.cache_store.cache_path, foi_fragment_cache_all_for_request(info_request))
FileUtils.rm_rf(cache_subpath)
# Remove the database caches of body / attachment text (the attachment text