Portal Home > Knowledgebase > Articles Database > caching


caching




Posted by Sammy89, 01-19-2011, 11:59 AM
What is the best way/system to use for caching files to increase webpage load time? Right now I have nginx serving as a reverse proxy passing requests to apache. is memcache something i want to use?

Posted by asciiDigital, 01-19-2011, 12:15 PM
This might help: http://forum.nginx.org/read.php?2,68395,68395

Posted by helpyoulinux, 01-19-2011, 12:24 PM
I hope you are using nginx as a load balancer rather than a cache. memcache is for caching php files. It is good to have memcache to cache dynamic pages while nginx works as a load balancer.

Posted by Sammy89, 01-19-2011, 12:58 PM
I don't know that nginx is so much as a load balancer right now since all it's doing is passing requests to apache as it handles traffic better. would it be ideal to have nginx cache static content? How would Memcache vary over say EAcc and XCache? my current config for nginx: nginx.conf site.com proxy.inc

Posted by Sammy89, 01-19-2011, 03:52 PM
I don't know that nginx is so much as a load balancer right now since all it's doing is passing requests to apache as it handles traffic better. would it be ideal to have nginx cache static content? how do i know if this nginx is caching content? i dont see anythign in the cache dir.... my current config for nginx: nginx.conf site.com proxy.inc q2)is running apache with deflate a bad idea? q3)is running eacc or xcache with memcache bad?

Posted by Sammy89, 01-20-2011, 03:59 AM
also, is using mod_cache on apache a good idea or needed when using nginx as a caching reverse proxy?

Posted by funkywizard, 01-27-2011, 10:07 AM
when used as a reverse proxy, nginx can certainly help reduce the number of apache slots that you need in order to service a given amount of traffic, because the apache slot will pass all the data off to nginx to serve to the client, rather than apache being tied up until the client finishes downloading the data and closes the connection. You can easily cut apache client connections in half doing this alone. So yeah, it's definitely helpful there.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Force htpasswd (Views: 629)
SemoWeb Update 8/9/09 (Views: 1171)

Language: