]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Checked also for ext-cache, purged 'payments' cache file in FILTER_CACHE_DESTROY_ALL()
[mailer.git] / inc / functions.php
index 2afef01eabf53df9410f4f2497abf5c523f16a08..106feb4dd2bad1bba207aa21ad4449f1ee95f881 100644 (file)
@@ -1402,7 +1402,7 @@ function rebuildCache ($cache, $inc = '', $force = false) {
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, sprintf("cache=%s, inc=%s, force=%s", $cache, $inc, intval($force)));
 
        // Shall I remove the cache file?
-       if (isCacheInstanceValid()) {
+       if ((isExtensionInstalled('cache')) && (isCacheInstanceValid())) {
                // Rebuild cache
                if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
                        // Destroy it