diff options
author | wclouser@mozilla.com <wclouser@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2009-06-10 17:28:39 (GMT) |
---|---|---|
committer | wclouser@mozilla.com <wclouser@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5> | 2009-06-10 17:28:39 (GMT) |
commit | 3c2b5ff798285f71b100dadd349cf073a4ebb02f (patch) | |
tree | 0b0340368846486056d732ff5b3615be580d1cb8 | |
parent | 86aaca7766ea1e3da54e220653018470bbe63029 (diff) |
Disable query caching for collections controller when a user is logged in
git-svn-id: http://svn.mozilla.org/addons/trunk@27479 4eb1ac78-321c-0410-a911-ec516a8615a5
-rw-r--r-- | site/app/controllers/collections_controller.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/site/app/controllers/collections_controller.php b/site/app/controllers/collections_controller.php index 6a23ecc..a733130 100644 --- a/site/app/controllers/collections_controller.php +++ b/site/app/controllers/collections_controller.php @@ -60,6 +60,13 @@ class CollectionsController extends AppController $this->SimpleAuth->enabled = false; $this->SimpleAcl->enabled = false; + // disable query caching so devcp changes are visible immediately + if ($this->Session->check('User')) { + foreach ($this->uses as $_model) { + $this->$_model->caching = false; + } + } + $this->publish('jsAdd', array('amo2009/collections', 'jquery-ui/jqModal.js')); } |