Fixed typos in cache name extensions->extenion
authorRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 01:46:05 +0000 (01:46 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 28 Oct 2009 01:46:05 +0000 (01:46 +0000)
inc/libs/cache_functions.php

index e58854d92599e7eb1a3e850d5e45dff5ab02087b..7959501e951768abe20f08f9721ef2034b411233 100644 (file)
@@ -47,7 +47,7 @@ function FILTER_CACHE_DESTROY_ON_EXT_CHANGE ($data) {
        if (!isCacheInstanceValid()) return $data;
 
        // Remove cache
-       foreach (array('config','extensions','modules') as $cache) {
+       foreach (array('config','extension','modules') as $cache) {
                if ($GLOBALS['cache_instance']->loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile();
        } // END - foreach
 
@@ -74,7 +74,7 @@ function FILTER_CACHE_DESTROY_ALL () {
        if (!isCacheInstanceValid()) return false;
 
        // Remove cache files
-       foreach (array('admin','admin_acls','config','extensions','modules','refdepths','refsystem','themes','revision','filter','imprint') as $cache) {
+       foreach (array('admin','admin_acls','config','extension','modules','refdepths','refsystem','themes','revision','filter','imprint') as $cache) {
                /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Trying to remove cache %s.", $cache));
                if ($GLOBALS['cache_instance']->loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile();
        } // END - foreach