зеркало из https://github.com/nextcloud/server.git
Clear the CSS and JS cache earlier to make sure update goes smoothly
This commit is contained in:
Родитель
c1a32b5073
Коммит
5300d6ad55
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
Загрузка…
Ссылка в новой задаче