11/9/2023 0 Comments Php fpm clear cacheWith proper setup, Nginx FastCGI Cache can perform better than any WordPress cache plugin. You will need a VPS / Dedicated server to allow you to optimize your WordPress site using Nginx FastCGI Cache. When using regular shared hosting, Nginx FastCGI is not available and the only option available is the WordPress cache plugin. Many WordPress users ask the same question, which one is better?Īctually, both are good for your WordPress website. Nginx FastCGI Cache (RunCache) vs WordPress Cache Plugins Nginx FastCGI does support HTTPS protocol, which is an excellent alternative to Varnish, without having to increase any complexity in the server. There is a workaround to use Varnish with HTTPS, by adding an SSL/TLS terminator in front of Varnish to convert HTTPS to HTTP. Unfortunately, Varnish is designed to accelerate HTTP and doesn’t support the HTTPS protocol.Īfter Let’s Encrypt provides a free SSL/TLS for everyone and Google encourages HTTPS Everywhere and made the move to boost search engine rankings for sites using HTTPS URLS, most websites use HTTPS now for their website to ensure safety from online threats. When talking about server-side caching mechanism, Varnish is also one of the top popular choices. Your server CPU resource usage will be lower.Īnd finally, your server can handle more traffic with the same server specifications when using Nginx FastCGI Cache, ultimately allowing you to keep a more affordable server without having to scale any further. Your PHP-FPM and MariaDB/MySQL load will be reduced. When another user visits the same WordPress page, your website will not perform the same PHP and database requests again because the page is already cached and served by FastCGI.Īs a result, your server response time will be much faster after the initial load. When using Nginx FastCGI, this built-in Nginx module will be in between Nginx and PHP-FPM and it is able to generate a cached HTML page from PHP-FPM. Nginx send the generated HTML page to the web browser for the user.PHP-FPM sends the generated “static” HTML page back to Nginx.PHP-FPM processes the page and runs through the MariaDB/MySQL database query to retrieve the page.Nginx passes the request to PHP-FPM and Nginx will catch any PHP codes when trying to grabbing the page.When a user visits your WordPress page, the web browser sends an HTTP/HTTPS request to Nginx.What is Nginx FastCGI Cacheīefore we talk about Nginx FastCGI Cache, let’s talk about how your website works. In this post, we will enlighten everyone from beginner to expert for this topic, and make Nginx FastCGI Cache (RunCache) as one of your top favourite features in RunCloud. Nginx FastCGI Cache is usually an advanced topic for developer experts or sysadmins who are familiar with linux commands and the Nginx config. It is no secret that Nginx FastCGI Cache can drastically increase your WordPress performance by improving server response time and reducing the load on PHP-FPM and MySQL/MariaDB server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |