Answer the question
In order to leave comments, you need to log in
Bundle for Wordpress on NGINX+PHP-fpm: Opcache, Memcached and Varnish. Is it worth it?
Greetings. I started accelerating the Wordpress site, moved from Apache to NGINX + PHP-fpm, already installed and configured Opcache, I am satisfied with the result, but there is still room for improvement. I am not strong in materiel, I try to do everything according to manuals and experienced advice.
I read that you can still install Memcached and Varnish, but I'm already confused in all these caches. The site itself also has a caching plugin, it has an effect, but is it still worth configuring Memcached and Varnish then? Or will any of these be just interchangeable?
Please advise how to proceed based on best practices and expediency.
Answer the question
In order to leave comments, you need to log in
I'll say it's not worth it, would you believe me? And you will do it right. Write a test script and run it for a stress test. Then, after changing the config, run it again and then compare the metrics. Think further.
Not worth it. And that's how it should work. Better focus on optimizing MySQL and Wordpress itself.
fpm+nginx+opcache is the fastest link.
Recommended
nginx +apache+fpm
memcached - slower but able to work in clusters, if a cluster is not needed then opcache
If opcache has already been configured, dig not in the direction of caches, but in others. To the database, etc. Varnish is a universal cache of everything, but because of its versatility, it is more difficult to configure it, so I would not touch it, since opcache is already there. It is very easy to connect memcache to php applications if wordpress has ready-made settings for memcache - ok, plug it in, test it, will there be a difference. If it doesn't, turn it off.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question