Don't call clearCache() for OC_Minimizer statically, create OC_Minimizer objects for both CSS and JS to clear cache after upgrade

This commit is contained in:
Michael Gapczynski 2012-09-12 01:18:07 -04:00
parent ca6322465d
commit c5f9b887ff
1 changed files with 4 additions and 2 deletions

View File

@ -219,8 +219,10 @@ class OC{
$tmpl->printPage(); $tmpl->printPage();
exit; exit;
} }
OC_Minimizer::clearCache(); $minimizerCSS = new OC_Minimizer_CSS();
$minimizerCSS->clearCache();
$minimizerJS = new OC_Minimizer_JS();
$minimizerJS->clearCache();
OC_Config::setValue('version', implode('.', OC_Util::getVersion())); OC_Config::setValue('version', implode('.', OC_Util::getVersion()));
OC_App::checkAppsRequirements(); OC_App::checkAppsRequirements();
// load all apps to also upgrade enabled apps // load all apps to also upgrade enabled apps