]> git.mxchange.org Git - mailer.git/commitdiff
If rebuildCache() is being called e.g. in view.php ('raw mode') then no cache is...
authorquix0r <quix0r@mxchange.org>
Fri, 19 Oct 2012 15:01:56 +0000 (15:01 +0000)
committerquix0r <quix0r@mxchange.org>
Fri, 19 Oct 2012 15:01:56 +0000 (15:01 +0000)
inc/functions.php

index 321eddfaf5b202ee83831f3d022567d043277528..7702331fc7ce559c380a422473a7917a616cdea1 100644 (file)
@@ -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);