Skip to content
Snippets Groups Projects
Commit 9ea7817a authored by Bart Visscher's avatar Bart Visscher
Browse files

Remove core.{css,js} cache on upgrade

parent 73d726d1
No related branches found
No related tags found
No related merge requests found
...@@ -219,6 +219,7 @@ class OC{ ...@@ -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 { ...@@ -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')) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment