[pLog-svn] r6291 - plog/trunk/class/action/admin
mark at devel.lifetype.net
mark at devel.lifetype.net
Fri Apr 4 03:07:50 EDT 2008
Author: mark
Date: 2008-04-04 03:07:50 -0400 (Fri, 04 Apr 2008)
New Revision: 6291
Modified:
plog/trunk/class/action/admin/adminplugincenteraction.class.php
Log:
Remove the admin locales, blog locales & menu cache when we refresh the plugin list.
So, we can force the cache the update after a new plugin installed.
Modified: plog/trunk/class/action/admin/adminplugincenteraction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminplugincenteraction.class.php 2008-04-03 11:36:54 UTC (rev 6290)
+++ plog/trunk/class/action/admin/adminplugincenteraction.class.php 2008-04-04 07:07:50 UTC (rev 6291)
@@ -92,6 +92,16 @@
$this->_view->setValue( "versionCheck", $doVersionCheck );
$this->setCommonData();
+ // we need to remove the menu & locale cache here to force the lifetype reload the
+ // menu & locale again
+ $cache =& CacheManager::getCache();
+ foreach( Locales::getAvailableLocales() as $localeCode )
+ {
+ $cache->removeData( $localeCode, DaoCacheConstants::CACHE_LOCALES );
+ $cache->removeData( $localeCode, DaoCacheConstants::CACHE_BLOG_LOCALES );
+ }
+ $cache->removeData( MENU_ITEMS, DaoCacheConstants::CACHE_MENU_ITEMS, $instance );
+
// better to return true if everything fine
return true;
}
More information about the pLog-svn
mailing list