From 311240bafdf16aaaf7d5d3239293de9c7476d297 Mon Sep 17 00:00:00 2001 From: goat <16760685+goaaats@users.noreply.github.com> Date: Wed, 26 May 2021 17:16:06 +0200 Subject: [PATCH] unfuck cache --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index 088bb39..c66db98 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,6 @@ var diskCache = cacheManager.caching({ app.get('/characters/id/:charaId.png', async (req, res) => { var cacheKey = `img:${req.params.charaId}`; var ttl = 60 * 60 * 4; // 4 hours - ttl = 1; diskCache.wrap(cacheKey, // called if the cache misses in order to generate the value to cache