public function clear_all_caches()
 {
     expTheme::removeSmartyCache();
     expTheme::removeCss();
     expFile::removeFilesInDirectory(BASE . 'tmp/pixidou');
     if (file_exists(BASE . 'tmp/img_cache')) {
         expFile::removeFilesInDirectory(BASE . 'tmp/img_cache');
     }
     if (file_exists(BASE . 'tmp/extensionuploads')) {
         expFile::removeFilesInDirectory(BASE . 'tmp/extensionuploads');
     }
     expFile::removeFilesInDirectory(BASE . 'tmp/rsscache');
     flash('message', gt("All the System Caches have been cleared"));
     expHistory::back();
 }
Exemple #2
0
/** exdoc
 * This is the expTheme 1.0 compatibility layer
 */
function exponent_theme_remove_css()
{
    return expTheme::removeCss();
}