mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-02-23 05:31:44 +01:00
Req URL is lowercase in ApiCacheManager
This commit is contained in:
parent
a6fd0c95b2
commit
f70f21455f
@ -42,6 +42,8 @@ class ApiCacheManager {
|
|||||||
Logger.debug(`[ApiCacheManager] Skipping cache for random sort`)
|
Logger.debug(`[ApiCacheManager] Skipping cache for random sort`)
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
// Force URL to be lower case for matching against routes
|
||||||
|
req.url = req.url.toLowerCase()
|
||||||
const key = { user: req.user.username, url: req.url }
|
const key = { user: req.user.username, url: req.url }
|
||||||
const stringifiedKey = JSON.stringify(key)
|
const stringifiedKey = JSON.stringify(key)
|
||||||
Logger.debug(`[ApiCacheManager] count: ${this.cache.size} size: ${this.cache.calculatedSize}`)
|
Logger.debug(`[ApiCacheManager] count: ${this.cache.size} size: ${this.cache.calculatedSize}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user