]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_sql_patches.php
Use rebuildCache() instead of loadCacheFile()/removeCacheFile()
[mailer.git] / inc / gen_sql_patches.php
index 783124e1b48d57dfc63436aa25dd80090460837a..14158396a60b7650dde95a505a14ebac8064cf4a 100644 (file)
@@ -95,12 +95,9 @@ if (getFileHash() == '') {
 // @TODO Rewrite this to a filter
 if ((isExtensionInstalledAndNewer('cache', '0.1.2')) && (isCacheInstanceValid())) {
        // Destroy some cache files
-       foreach (array('config', 'extension', 'filter', 'modules')  as $cache) {
-               // Is the cache file there?
-               if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
-                       // Then remove it
-                       $GLOBALS['cache_instance']->removeCacheFile();
-               } // END - if
+       foreach (array('config', 'extension', 'filter', 'modules') as $cache) {
+               // Use rebuildCache()
+               rebuildCache($cache);
        } // END - foreach
 } // END - if