Sub Second Caching
I would like to be able to specify a TTL of 0.5 seconds for a specific cache condition.
The web user interface will only accept an integer for “Edit Cache Settings >> TTL”
Is it possible to configure sub-second TTL’s directly in VCL?
I would like to cache "ebay" like auction countdown responses. Requests are initiated by a client every second and update a user interface with time remaining and price. I have implemented a cache setting with a TTL of 1 second, which as is probably expected, mostly results in the timer staggering down in 2 second increments. I do not want to change the current design or implementation. I was hoping to bolt on caching in front of it. Any suggestions?
I'l have to keep thinking, but your end goals describes something that's almost inherently non-cacheable for practical purposes.
If your primary concern is eliminating the "thundering herd" problem of a large cluster of users requesting the same objects at the same time, our request collapsing functionality will work even if you don't cache. If you set requests to have a 0s TTL or to Pass in a Cache Setting in our UI (or with logic in
vcl_fetchif you're writing VCL), this should be set up properly.
Please sign in to leave a comment.