]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Use rebuildCache() instead of loadCacheFile()/removeCacheFile()
[mailer.git] / inc / functions.php
index 857d2c41b2f14cb955a368691463ee88f9e9651f..02e0b7a5e8656e43a35364df04cdf217b5f4579e 100644 (file)
@@ -1532,6 +1532,7 @@ function rebuildCache ($cache, $inc = '', $force = FALSE) {
        // Shall I remove the cache file?
        if ((isExtensionInstalled('cache')) && (isCacheInstanceValid()) && (isHtmlOutputMode())) {
                // Rebuild cache only in HTML output-mode
+               // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
                if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
                        // Destroy it
                        $GLOBALS['cache_instance']->removeCacheFile($force);