Re: Implementing proxy_cache_lock when updating items

2015-09-03 Thread footplus
Thanks for your reply. I'm currently using this mechanism (small variation of yours) to work around the limitation. On every intermediate cache server, i'm using the following (whole chain is using nginx). map $upstream_cache_status $accel_expires_from_upstream_cache_status {

Re: Implementing proxy_cache_lock when updating items

2015-09-02 Thread Maxim Dounin
Hello! On Mon, Aug 31, 2015 at 09:16:00AM -0400, footplus wrote: > Hello, > > I am currently implementing a caching proxy with many short-lived items, > expiring at a specific date (Expires header set at an absolute time between > 10 and 30 seconds in the future by the origin). For various reas

Implementing proxy_cache_lock when updating items

2015-08-31 Thread footplus
Hello, I am currently implementing a caching proxy with many short-lived items, expiring at a specific date (Expires header set at an absolute time between 10 and 30 seconds in the future by the origin). For various reasons, my cache is multi-level (edge, intermediate 2, intermediate 1, origin) a