Remove core.{css,js} cache on upgrade

remotes/origin/stable45
Bart Visscher 14 years ago
parent 73d726d1b2
commit 9ea7817a40
  1. 1
      lib/base.php
  2. 6
      lib/minimizer.php

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

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

Loading…
Cancel
Save