X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffunctions.php;h=7702331fc7ce559c380a422473a7917a616cdea1;hb=c6d7fae40558748055e8c023778084b72dd1feb7;hp=321eddfaf5b202ee83831f3d022567d043277528;hpb=eba2a11e2315e55ad591d52a92d270befe7deb2a;p=mailer.git diff --git a/inc/functions.php b/inc/functions.php index 321eddfaf5..7702331fc7 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1423,8 +1423,8 @@ 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 ((isExtensionInstalled('cache')) && (isCacheInstanceValid())) { - // Rebuild cache + if ((isExtensionInstalled('cache')) && (isCacheInstanceValid()) && (isHtmlOutputMode())) { + // Rebuild cache only in HTML output-mode if ($GLOBALS['cache_instance']->loadCacheFile($cache)) { // Destroy it $GLOBALS['cache_instance']->removeCacheFile($force);