Author: sevein
Date: Tue Sep 6 10:30:10 2011
New Revision: 9665
Log:
Clear cache after theme switch
Modified:
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/actions/themesAction.class.php
Modified:
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/actions/themesAction.class.php
==============================================================================
---
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/actions/themesAction.class.php
Tue Sep 6 10:29:10 2011 (r9664)
+++
trunk/plugins/sfPluginAdminPlugin/modules/sfPluginAdminPlugin/actions/themesAction.class.php
Tue Sep 6 10:30:10 2011 (r9665)
@@ -97,6 +97,10 @@
$setting->__set('value', serialize(array_unique($settings)));
$setting->save();
+ // Clear cache
+ $cacheClear = new
sfCacheClearTask(sfContext::getInstance()->getEventDispatcher(), new
sfFormatter());
+ $cacheClear->run();
+
$this->redirect(array('module' => 'sfPluginAdminPlugin', 'action' =>
'themes'));
}
}
--
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.