}
// 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
} // END - if
}
+// Filter for purging entire admin menu cache
+function FILTER_CACHE_PURGE_ADMIN_MENU () {
+ // Just call the function
+ CACHE_PURGE_ADMIN_MENU();
+}
+
//
?>