initCache after every restore

This commit is contained in:
Girish Ramakrishnan
2019-07-27 19:09:09 -07:00
parent d3c5d53eae
commit 2cd00de6e3
2 changed files with 1 additions and 2 deletions

View File

@@ -277,7 +277,6 @@ function restore(backupConfig, backupId, version, auditSource, callback) {
async.series([
setProgress.bind(null, 'restore', 'Downloading backup'),
backups.restore.bind(null, backupConfig, backupId, (progress) => setProgress('restore', progress.message, NOOP_CALLBACK)),
settings.initCache,
domains.prepareDashboardDomain.bind(null, settings.adminDomain(), auditSource, (progress) => setProgress('restore', progress.message, NOOP_CALLBACK)),
cloudron.setDashboardDomain.bind(null, settings.adminDomain(), auditSource),
settings.setBackupConfig.bind(null, backupConfig), // update with the latest backupConfig