Skip to content

Commit

Permalink
Add: clear metadata cache when restoring backup
Browse files Browse the repository at this point in the history
  • Loading branch information
nichwall committed Aug 20, 2024
1 parent ccdc3d6 commit 996c78d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/managers/BackupManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const fileUtils = require('../utils/fileUtils')
const { getFileSize } = require('../utils/fileUtils')

const Backup = require('../objects/Backup')
const CacheManager = require('./CacheManager')

class BackupManager {
constructor(notificationManager) {
Expand Down Expand Up @@ -230,6 +231,9 @@ class BackupManager {
// Reset api cache, set hooks again
await apiCacheManager.reset()

// Clear metadata cache
await CacheManager.purgeAll()

res.sendStatus(200)

// Triggers browser refresh for all clients
Expand Down

0 comments on commit 996c78d

Please sign in to comment.