X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions%2Fext-cache.php;h=e881b8bd6fbbe28e71e14e047be689b5f14daf34;hp=9bfd6e0459e2252c3699a3d0a926536dc6a3f297;hb=6586600d8020147192e5f28ca2a3a0153f774d3c;hpb=c08df20b10d0771e7f749d7afbe1f76be9f1b028 diff --git a/inc/extensions/ext-cache.php b/inc/extensions/ext-cache.php index 9bfd6e0459..e881b8bd6f 100644 --- a/inc/extensions/ext-cache.php +++ b/inc/extensions/ext-cache.php @@ -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__."(".__LINE__."): ".CACHE_CANNOT_INITIALIZE);