diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-03-09 11:48:38 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-03-13 13:55:47 +0000 |
commit | 76de470b1424be57934e58275a6116afb8eb9b3c (patch) | |
tree | 6ed9df78a8acac8278776c831ae6eb08383d935c /app/controllers/admin_controller.rb | |
parent | 17373088052029db46f6f8a6243901e442f6015c (diff) |
first stab at sending PURGE requests to upstream varnish for request pages. Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.
Diffstat (limited to 'app/controllers/admin_controller.rb')
-rw-r--r-- | app/controllers/admin_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index adb506b91..1612e5179 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -36,6 +36,8 @@ class AdminController < ApplicationController # also force a search reindexing (so changed text reflected in search) info_request.reindex_request_events + # and remove from varnsi + info_request.purge_in_cache end # Expire cached attachment files for a user |