Remove core.{css,js} cache on upgrade
This commit is contained in:
parent
73d726d1b2
commit
9ea7817a40
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||||
|
|
|
@ -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')) {
|
||||||
|
|
Loading…
Reference in a new issue