Clear the CSS and JS cache earlier to make sure update goes smoothly

This commit is contained in:
Michael Gapczynski 2013-03-05 21:13:07 -05:00
parent c1a32b5073
commit 5300d6ad55
2 changed files with 4 additions and 4 deletions

View File

@ -17,10 +17,6 @@ if (OC::checkUpgrade(false)) {
} catch (Exception $exception) {
$watcher->failure($exception->getMessage());
}
$minimizerCSS = new OC_Minimizer_CSS();
$minimizerCSS->clearCache();
$minimizerJS = new OC_Minimizer_JS();
$minimizerJS->clearCache();
OC_Config::setValue('version', implode('.', OC_Util::getVersion()));
OC_App::checkAppsRequirements();
// load all apps to also upgrade enabled apps

View File

@ -277,6 +277,10 @@ class OC {
OC_Log::write('core',
'starting upgrade from ' . $installedVersion . ' to ' . $currentVersion,
OC_Log::DEBUG);
$minimizerCSS = new OC_Minimizer_CSS();
$minimizerCSS->clearCache();
$minimizerJS = new OC_Minimizer_JS();
$minimizerJS->clearCache();
OC_Util::addscript('update');
$tmpl = new OC_Template('', 'update', 'guest');
$tmpl->assign('version', OC_Util::getVersionString());