mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-24 17:59:06 +02:00
Fix:Applying backup not properly overwriting existing sqlite file
- Fixed resetting api cache on backup - Added loading indicator in backups table - Fixed apply backup api not responding with 200 http status code - Added additional logging and failsafes
This commit is contained in:
parent
88f9533b37
commit
a2b2a2d060
5 changed files with 78 additions and 8 deletions
|
@ -22,6 +22,16 @@ class ApiCacheManager {
|
|||
this.cache.clear()
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset hooks and clear cache. Used when applying backups
|
||||
*/
|
||||
reset() {
|
||||
Logger.info(`[ApiCacheManager] Resetting cache`)
|
||||
|
||||
this.init()
|
||||
this.cache.clear()
|
||||
}
|
||||
|
||||
get middleware() {
|
||||
return (req, res, next) => {
|
||||
const key = { user: req.user.username, url: req.url }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue