]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-cache.php
Cache class rewritten to better convention
[mailer.git] / inc / extensions / ext-cache.php
index 9bfd6e0459e2252c3699a3d0a926536dc6a3f297..e881b8bd6fbbe28e71e14e047be689b5f14daf34 100644 (file)
@@ -91,11 +91,13 @@ case "update": // Update an extension
                break;
 
        case "0.0.4": // SQL queries for v0.0.4
-               // Update notes (these will be set as task text!)
+               // Is the cache extension itself there?
                if (EXT_IS_ACTIVE("cache")) {
                        // Check for cache when extension is already installed
-                       if ($cacheInstance->cache_file("extensions", true)) $cacheInstance->cache_destroy();
+                       if ($cacheInstance->loadCacheFile("extensions", true)) $cacheInstance->destroyCacheFile();
                } // END - if
+
+               // Update notes (these will be set as task text!)
                $UPDATE_NOTES = "Spalte "keep_active" ist hinzugefügt. Cache wurde reinitialisiert.";
                break;
 
@@ -204,7 +206,7 @@ default: // Do stuff when extension is loaded
        // Create instance on class
        if ($cacheMode != "init") {
                // Initialize cache system only when it's needed
-               $cacheInstance = new mxchange_cache($_CONFIG['cache_update'], PATH."inc/".$_CONFIG['cache_path'], $_CONFIG['cache_tested']);
+               $cacheInstance = new CacheSystem($_CONFIG['cache_update'], PATH."inc/".$_CONFIG['cache_path'], $_CONFIG['cache_tested']);
                if ($cacheInstance->getStatus() != "done") {
                        // Failed to initialize cache sustem
                        ADD_FATAL(__FILE__."(<font color=\"#0000aa\">".__LINE__."</font>): ".CACHE_CANNOT_INITIALIZE);