Cache middleware keys too difficult to customize
|Reported by:||Yeago||Owned by:|
|Component:||Core (Cache system)||Version:|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Attached is a patch which brings many otherwise-unused "utils.cache" utils under the middleware method as classmethods. This is to provide easy hooks so that people can make their own cache key structures.
In case anyone cares, the problem I ran into was that nginx couldn't digest the default cache keys which that middlware creates as they were needlessly complex.
Change History (9)
comment:1 Changed 5 years ago by
|Patch needs improvement:||unset|