X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Floader%2Fload_cache-refsystem.php;h=5025371b66918bc8b408272545028135b054216d;hp=b841bd1de0b00ba5852b63821fe7db78b21397b4;hb=8c9baae6ae32656356459d26f2b45cd98a1498fa;hpb=6586600d8020147192e5f28ca2a3a0153f774d3c diff --git a/inc/loader/load_cache-refsystem.php b/inc/loader/load_cache-refsystem.php index b841bd1de0..5025371b66 100644 --- a/inc/loader/load_cache-refsystem.php +++ b/inc/loader/load_cache-refsystem.php @@ -37,12 +37,15 @@ if (!defined('__SECURITY')) { require($INC); } +// Make cacheInstance global +global $cacheInstance; + // Next cached table is the referal system (refsystem)... if (($cacheInstance->loadCacheFile("refsystem")) && ($cacheInstance->extensionVersionMatches("sql_patches"))) { // Load referal system from cache global $cacheArray; - $cacheArray['ref_system'] = $cacheInstance->getArrayFromCache(); -} elseif (($_CONFIG['cache_refsys'] == "Y") && ($CSS != "1") && ($CSS != "-1")) { + $cacheArray['refsystem'] = $cacheInstance->getArrayFromCache(); +} elseif ((getConfig('cache_refsys') == "Y") && ($CSS != "1") && ($CSS != "-1")) { // Create cache file here $cacheInstance->init("REFSYSTEM"); $cacheInstance->storeExtensionVersion("sql_patches");