From ba0bf5c3feb038a3e93a46b3c6790d467d298357 Mon Sep 17 00:00:00 2001 From: Francis Irving Date: Tue, 18 May 2010 10:54:50 +0100 Subject: Generate path for fragment cache in central place --- app/controllers/admin_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/admin_controller.rb') 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 -- cgit v1.2.3