unfuck cache

This commit is contained in:
goat 2021-05-26 17:16:06 +02:00
parent 84852d22eb
commit 311240bafd
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -27,7 +27,6 @@ var diskCache = cacheManager.caching({
app.get('/characters/id/:charaId.png', async (req, res) => { app.get('/characters/id/:charaId.png', async (req, res) => {
var cacheKey = `img:${req.params.charaId}`; var cacheKey = `img:${req.params.charaId}`;
var ttl = 60 * 60 * 4; // 4 hours var ttl = 60 * 60 * 4; // 4 hours
ttl = 1;
diskCache.wrap(cacheKey, diskCache.wrap(cacheKey,
// called if the cache misses in order to generate the value to cache // called if the cache misses in order to generate the value to cache