default: // Do stuff when extension is loaded
// Create instance on class
if ($cacheMode != "init") {
+ // Make cacheInstance global
+ global $cacheInstance;
+
// Initialize cache system only when it's needed
$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);
- }
- }
+ } // END - if
+ } // END - if
break;
}