LP#1435938: Set no_cache on AC clear response
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 10 Jun 2015 16:41:45 +0000 (12:41 -0400)
committerBen Shum <bshum@biblio.org>
Mon, 17 Aug 2015 16:27:06 +0000 (12:27 -0400)
So that the clearing itself isn't cached.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm

index ba770d1..a1f1767 100644 (file)
@@ -134,6 +134,7 @@ sub handler {
     return Apache2::Const::NOT_FOUND unless $handler and $type and $format and $cachekey;
 
     if ($type eq "clearcache") {
+        $r->no_cache(1); # Don't cache the clear cache info
         return $AC->clear_cache($format, $cachekey);
     }