RAMCacheManager: more explicit key control
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Summary:
It would be nice if RAMCacheManager could be keyed on things other than request variables. Arbitrary TALES expressions would be great. The bindings "container" and "context" could be provided.
Use case: RAMCacheManager is currently sensitive to whether cached scripts are acquired from the context or from the container. A template that calls tal:define="foo context/someScript"
will generate many more cache entries and misses compared to one that calls tal:define="foo container/
* it's hardcoded policy
* it's undocumented
* there is no way for the cache administrator to work around it
* template authors can work around it by changing "context" to "container" or vice versa, but this is an obscure implicit solution, requires changes to potentially many templates, and it should not be the template author's job.
Full discussion of the issue is in this thread:
http://
Note a potential pitfall here:
http://
and a solution if TALES expressions were provided:
http://
If implemented, this feature should be backward-
Changed in zope2: | |
importance: | Low → Wishlist |
I don't use RAMCacheManager anymore.