Welcome! Log In Create A New Profile

Advanced

Simple nginx page cache without proxying???

Posted by gdork 
Simple nginx page cache without proxying???
July 14, 2010 09:42AM
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?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready