Set no_cache on AC clear response user/tsbere/addedcontent_clearcache
authorThomas Berezansky <tsbere@mvlc.org>
Wed, 10 Jun 2015 16:41:45 +0000 (12:41 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Wed, 10 Jun 2015 16:43:53 +0000 (12:43 -0400)
So that the clearing itself isn't cached.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.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);
     }