if (isExtensionActive('cache')) {
// Remove cache file (will be auto-created again!)
foreach (array('config', 'extension', 'filter', 'modules') as $cache) {
- // Is the cache file there?
- if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
- // Remove cache file
- $GLOBALS['cache_instance']->removeCacheFile();
- } // END - if
+ // Rebuild cache file
+ rebuildCache($cache);
} // END - foreach
} // END - if