I want nginx to cache certain pages for X numbers of seconds.
I dont want to setup two instances of nginx and have one proxy to another just so I can use proxy cacheing. Thats all I can seem to find when searching on google: using nginx as a cache proxy to apache running on 8080, or whatever.
I DO NOT WANT TO USE APACHE. I want a pure nginx install :)
Is there a way to do something SIMPLE like:
location /blah.php {
simplecache 5sec;
}
???
This would make it trivial to handle crazy load spikes as it would cause the script to only be hit one time every 5 seconds.
I want to use this for dynamic pages that dont need to be perfect up to date.
Possible?
Any other simple solutions with nginx?