Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authorfwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-09-11 22:26:54 (GMT)
committer fwenzel@mozilla.com <fwenzel@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2008-09-11 22:26:54 (GMT)
commit12be9dcd95cd4f2339efe5cc9e2958e333ba3726 (patch)
treee5b342aabb933759637e46cb04e65b66aafdd344 /site/app/app_controller.php
parentb72ffb6da4c21fa72b48a70003c283573e2b9592 (diff)
object invalidation framework for memcache (bug 450442, r=clouserw)
git-svn-id: http://svn.mozilla.org/addons/trunk@18173 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 8ba48ba..24a492f 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -314,6 +314,21 @@ class AppController extends Controller
}
/**
+ * afterFilter callback.Called after every action is completed.
+ * Flushes object cache objects if necessary.
+ */
+ function afterFilter() {
+ if (!QUERY_CACHE || !is_object($this->Config->Cache))
+ return parent::afterFilter();
+
+ global $flush_lists;
+ if (!empty($flush_lists))
+ $this->Config->Cache->flushMarkedLists();
+
+ return parent::afterFilter();
+ }
+
+ /**
* html-encode an array, recursively
*
* @param mixed the data array (or string) to be html-encoded (by reference)