Remove core.{css,js} cache on upgrade

This commit is contained in:
Bart Visscher 2012-09-07 12:27:47 +02:00
parent 73d726d1b2
commit 9ea7817a40
2 changed files with 7 additions and 0 deletions

View file

@ -219,6 +219,7 @@ class OC{
$tmpl->printPage(); $tmpl->printPage();
exit; exit;
} }
OC_Minimizer::clearCache();
OC_Config::setValue('version', implode('.', OC_Util::getVersion())); OC_Config::setValue('version', implode('.', OC_Util::getVersion()));
OC_App::checkAppsRequirements(); OC_App::checkAppsRequirements();

View file

@ -45,6 +45,12 @@ abstract class OC_Minimizer {
header('Content-Length: '.strlen($out)); header('Content-Length: '.strlen($out));
echo $out; echo $out;
} }
public function clearCache() {
$cache = OC_Cache::getGlobalCache();
$cache->delete('core.css.gz');
$cache->delete('core.js.gz');
}
} }
if (!function_exists('gzdecode')) { if (!function_exists('gzdecode')) {