How do I instruct nginx to cache a particular page for a fixed duration?
Say I have a home page at quintin.com/index.php. Now I want nginx to cache this for 5 mins and then hit apache to take the new one. How do I do this?
|
How do I instruct nginx to cache a particular page for a fixed duration? Say I have a home page at
| |||
|
feedback
|
|
Setup a cache zone and configure a specific location to be cached with the nginx proxy/cache module. There's a blog post about a simple setup. Basically you need to create a place associated with a zone:
and then assign stuff to be cached on that zone:
| |||
|
feedback
|