Tuesday 18 December 2018

How to Make WordPress Page Cache Plugins Fly With Nginx


Anyone who’s trying to improve the performance of their WordPress site eventually turns to caching. There are a ton of WordPress page caching plugins available, but limiting yourself to cache plugins alone means leaving significant performance improvements on the table. If you’ve been reading the Delicious Brains blog for any amount of time, you’ll likely know that I’m a massive advocate of Nginx FastCGI Caching. Not only is it the caching method of choice in Hosting WordPress Yourself, but it’s been the subject of many other blog posts. Most recently Page Caching: Varnish Vs Nginx FastCGI Cache 2018 Update where I benchmarked popular WordPress caching solutions. One thing is clear, Nginx FastCGI Caching is blazingly fast and relatively easy to configure. However, it does have its quirks, namely, the difficulty with invalidating the cache.
Nginx FastCGI Caching works great when both Nginx and PHP run under the same system user. This is because the cached files are writable by PHP, meaning you can purge the cache directly from PHP, which is particularly important when publishing or updating a post in WordPress. However, Nginx will always create the cache
Source: https://managewp.org/articles/18222/how-to-make-wordpress-page-cache-plugins-fly-with-nginx



source https://williechiu40.wordpress.com/2018/12/18/how-to-make-wordpress-page-cache-plugins-fly-with-nginx/

No comments:

Post a Comment