]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/cache_functions.php
Began to rewrite whole script for newly added filters, new extension stub 'network...
[mailer.git] / inc / libs / cache_functions.php
index 15adc4680619d683518bb041cddce11807b4e788..1c083863ec2e13a7dbf75d5f71d2148d5becaacd 100644 (file)
@@ -397,22 +397,25 @@ class CacheSystem {
 }
 
 // Destroy the cache on extension changes
-function FILTER_CACHE_DESTROY_ON_EXT_CHANGE () {
+function FILTER_CACHE_DESTROY_ON_EXT_CHANGE ($data) {
        global $cacheInstance;
 
-       // Update cache
+       // Remove cache
        if (EXT_IS_ACTIVE("cache")) {
                if ($cacheInstance->loadCacheFile("config"))     $cacheInstance->destroyCacheFile();
                if ($cacheInstance->loadCacheFile("extensions")) $cacheInstance->destroyCacheFile();
                if ($cacheInstance->loadCacheFile("mod_reg"))    $cacheInstance->destroyCacheFile();
        } // END - if
+
+       // Return it
+       return $DATA;
 }
 
 // Destroy the cache on changing admin
 function FILTER_CACHE_DESTROY_ON_ADMIN_CHANGE () {
        global $cacheInstance;
 
-       // Update cache
+       // Remove cache
        if (EXT_IS_ACTIVE("cache")) {
                if ($cacheInstance->loadCacheFile("admins")) $cacheInstance->destroyCacheFile();
        } // END - if
@@ -434,5 +437,11 @@ function FILTER_CACHE_DESTROY_ALL () {
        } // END - if
 }
 
+// Filter for purging entire admin menu cache
+function FILTER_CACHE_PURGE_ADMIN_MENU () {
+       // Just call the function
+       CACHE_PURGE_ADMIN_MENU();
+}
+
 //
 ?>