How do I make the cache persistent (across nginx restart)?
Wiki says that keys and metadata are stored in shared memory, does that
mean it’s not possible to save cache?
How do I sync the caches on different nginx, so that same URL request
does not hit app server multiple times.
Can I use something like rsync?
lookup proxy_cache_path. Cache is stored in a folder structure then.
As its filebased I persume rsync would work, although I am not sure of
the
exact implementation in nginx it may not be picked up by the cache
loaded
unless you reload.
On Mon, Aug 01, 2011 at 10:43:53PM -0400, lennydizzy wrote:
So I have two questions:
How do I make the cache persistent (across nginx restart)?
Wiki says that keys and metadata are stored in shared memory, does that
mean it’s not possible to save cache?
The cache is persistent. Keys and metadata are loaded gracefully (I
hope)
from disk on nginx start.
How do I sync the caches on different nginx, so that same URL request
does not hit app server multiple times.
Can I use something like rsync?