summaryrefslogtreecommitdiff
path: root/LibertySystem.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2007-07-07 17:59:12 +0000
committerMax Kremmel <xing@synapse.plus.com>2007-07-07 17:59:12 +0000
commit50cf7d22bfe9d2c70cbc96d0e86742593c13902b (patch)
tree93a929cde5e2ff94a87ecf206924cb661d3b9fcc /LibertySystem.php
parentddaecadf39f764219adef3e389ae8e869e621dfc (diff)
downloadliberty-50cf7d22bfe9d2c70cbc96d0e86742593c13902b.tar.gz
liberty-50cf7d22bfe9d2c70cbc96d0e86742593c13902b.tar.bz2
liberty-50cf7d22bfe9d2c70cbc96d0e86742593c13902b.zip
remove liberty cache when plugin settings have been modified
Diffstat (limited to 'LibertySystem.php')
-rwxr-xr-xLibertySystem.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/LibertySystem.php b/LibertySystem.php
index 9c07f0d..4027a71 100755
--- a/LibertySystem.php
+++ b/LibertySystem.php
@@ -3,7 +3,7 @@
* System class for handling the liberty package
*
* @package liberty
-* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.87 2007/07/06 15:43:23 squareing Exp $
+* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertySystem.php,v 1.88 2007/07/07 17:59:12 squareing Exp $
* @author spider <spider@steelsun.com>
*/
@@ -265,20 +265,25 @@ class LibertySystem extends LibertyBase {
global $gBitSystem;
if( is_array( $pPluginGuids ) ) {
- # zap list of plugins from DB
+ // zap list of plugins from DB
$gBitSystem->setConfigMatch( "/^{$this->mSystem}_plugin_status/i", NULL, 'n', LIBERTY_PKG_NAME );
foreach( array_keys( $this->mPlugins ) as $guid ) {
$this->mPlugins[$guid]['is_active'] = 'n';
}
- #set active those specified
+ // set active those specified
foreach( array_keys( $pPluginGuids ) as $guid ) {
if( $pPluginGuids[$guid][0] == 'y' ) {
$this->setActivePlugin( $guid );
}
}
- //load any plugins made active, but not already loaded
+ // load any plugins made active, but not already loaded
$this->loadActivePlugins();
+
+ // finally we need to remove all cache files since the content has been changed
+ if( $gBitSystem->isFeatureActive( 'liberty_cache' )) {
+ LibertyContent::expungeCache();
+ }
}
}