Some examples of how to use

This commit is contained in:
Tanya Byrne
2020-08-24 14:04:09 +01:00
parent c96d24eafe
commit fb10e32c9f
5 changed files with 10 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ const cacheMiddleware: RequestHandler = asyncHandler(async (req, res, next) => {
// make the key of the cache the URL
// need to check that this will work for all endpoints
// node cache service
// have used query as then can decide whather to use cache or not from api call
if (!req.query.TTL) return next();
if (!req.query.dTTL) return next();