upcache
upcache copied to clipboard
Replacement in tag names with req.params is not useful
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.