Open wezell opened 1 week ago
trunk_eaa0f2e
The CaffineCache
is now using the DynamicTTLCache
for providing per object TTL entries now, as expected. This is what the Settings > Maintenance > CACHE > Cache Stats
looked like before the change -- notice the Timed Cache Provider Section
there:
And this is what it looks like now:
Approved: Tested on trunk_68612b9, Docker, macOS 14.5, FF v126.0.1
Parent Issue
No response
User Story
We have a timed cache provider that allows us to set a group TTL. When we want to build a cache that uses a per object TTL, we have to write some nasty code to work around this fact - and do things like have wrapper object and cleanup threads to remove stale entries. This is important for things like the
blockdirectivecache
and the Page cache, where each object has a specific TTL.Acceptance Criteria
Allow networked caches to have a specific TTL per object.
Steps to Reproduce
/set-variable
, and set its Cache TTL to zero.Code Snippet
to it, with the following code, which will store thefoo
entry to the Dynamic Cache for a period of 10 seconds:/get-variable
, and set its Cache TTL to zero as well.Code Snippet
to it, with the following code, which will read the value of thefoo
entry:/set-variable
page./get-variable
page. It must display the value of thefoo
variable:bar
./get-variable
page. You should get the Velocity code now instead of the variables value.