unfuck cache
This commit is contained in:
parent
84852d22eb
commit
311240bafd
1 changed files with 0 additions and 1 deletions
1
index.js
1
index.js
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue