Open kapouer opened 6 years ago
It just doesn't match how upcache tags are set w.r.t. express middlewares.
It would be more useful to configure upcache.tag with some filter(name, req) function.
Example: https://github.com/pageboard/server/blob/c0ca8dee8a1e5e6ea77fbcc407198a2a7b3c76c8/packages/cache/index.js#L16 Express "params" is useful for a single route, but tag usually applies to many routes at once.
It just doesn't match how upcache tags are set w.r.t. express middlewares.
It would be more useful to configure upcache.tag with some filter(name, req) function.