mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Some examples of how to use
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user