Author: david
Date: Fri Nov 18 11:41:36 2011
New Revision: 10337
Log:
Clear all menu cache files on update (delete, change order, add, update). Fixes
issue 2181
Modified:
trunk/apps/qubit/modules/menu/actions/deleteAction.class.php
trunk/apps/qubit/modules/menu/actions/editAction.class.php
trunk/apps/qubit/modules/menu/actions/listAction.class.php
Modified: trunk/apps/qubit/modules/menu/actions/deleteAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/menu/actions/deleteAction.class.php Thu Nov
17 16:24:44 2011 (r10336)
+++ trunk/apps/qubit/modules/menu/actions/deleteAction.class.php Fri Nov
18 11:41:36 2011 (r10337)
@@ -40,8 +40,8 @@
// Remove cache
if ($this->context->getViewCacheManager() !== null)
{
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=settings');
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=settings');
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=*');
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=*');
}
$this->redirect(array('module' => 'menu', 'action' => 'list'));
Modified: trunk/apps/qubit/modules/menu/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/menu/actions/editAction.class.php Thu Nov 17
16:24:44 2011 (r10336)
+++ trunk/apps/qubit/modules/menu/actions/editAction.class.php Fri Nov 18
11:41:36 2011 (r10337)
@@ -152,8 +152,8 @@
// Remove cache
if ($this->context->getViewCacheManager() !== null)
{
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key='.$this->context->getUser()->getCulture());
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key='.$this->context->getUser()->getCulture());
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=*');
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=*');
}
$this->redirect(array('module' => 'menu', 'action' => 'list'));
Modified: trunk/apps/qubit/modules/menu/actions/listAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/menu/actions/listAction.class.php Thu Nov 17
16:24:44 2011 (r10336)
+++ trunk/apps/qubit/modules/menu/actions/listAction.class.php Fri Nov 18
11:41:36 2011 (r10337)
@@ -44,8 +44,8 @@
// Remove cache
if ($this->context->getViewCacheManager() !== null)
{
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=settings');
-
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=settings');
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_browseMenu&sf_cache_key=*');
+
$this->context->getViewCacheManager()->remove('@sf_cache_partial?module=menu&action=_mainMenu&sf_cache_key=*');
}
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.