Proxy store question

Hi all, I’m looking at proxy store directive, that would be really
useful for
a situation that we are facing, but I’m wandering how the store is
invalidated: when a new page is requested to the backend instead of
serving
the cached one?
Is possible to set a timeout, so if nginx finds that the stored page is
older
than a fixed amount of time it fetches again the page, otherwise it
serves
the one in the store, regardless of any header?

Thanks for any answer.

On Wed, May 14, 2008 at 02:45:44PM +0200, Fabio Coatti wrote:

Hi all, I’m looking at proxy store directive, that would be really useful for
a situation that we are facing, but I’m wandering how the store is
invalidated: when a new page is requested to the backend instead of serving
the cached one?
Is possible to set a timeout, so if nginx finds that the stored page is older
than a fixed amount of time it fetches again the page, otherwise it serves
the one in the store, regardless of any header?

No, proxy_store is mirror on demand only. It never invalidates pages.
What you are looking is cacheing, that will be (I hope) soon ready.

No, proxy_store is mirror on demand only. It never invalidates pages.
What you are looking is cacheing, that will be (I hope) soon ready.

well, good to know; in the meanwhile I suppose that a cronjob firing a
well aimed rm will do the trick.
Looking forward for any news on caching side, thanks for your answer.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs