Skip caching for "placholder" user

This commit is contained in:
lowlighter
2020-12-07 18:26:58 +01:00
parent d2e96e5bb1
commit 7f77d33bb9

View File

@@ -115,7 +115,7 @@
console.debug(`metrics/app/${login} > ${JSON.stringify(req.query)}`) console.debug(`metrics/app/${login} > ${JSON.stringify(req.query)}`)
const rendered = await metrics({login, q:parse(req.query)}, {graphql, rest, plugins, conf}) const rendered = await metrics({login, q:parse(req.query)}, {graphql, rest, plugins, conf})
//Cache //Cache
if ((!debug)&&(cached)) if ((!debug)&&(cached)&&(login !== "placeholder"))
cache.put(login, rendered, cached) cache.put(login, rendered, cached)
//Send response //Send response
res.header("Content-Type", "image/svg+xml") res.header("Content-Type", "image/svg+xml")