diff options
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index 32882f8a4..7f8cfbd67 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2009 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: admin_controller.rb,v 1.28 2009-09-15 20:46:35 francis Exp $ +# $Id: admin_controller.rb,v 1.29 2009-09-17 10:24:35 francis Exp $ require 'fileutils' @@ -34,6 +34,10 @@ class AdminController < ApplicationController cache_subpath = File.join(self.cache_store.cache_path, "views/request/#{info_request.id}") FileUtils.rm_rf(cache_subpath) + # Remove the database caches of body / attachment text (the attachment text + # one is after privacy rules are applied) + info_request.clear_in_database_caches! + # also force a search reindexing (so changed text reflected in search) info_request.reindex_request_events end |