Blazing Fast Cloud Servers

Server set-up in less than 1 minute, Instant scaling up or down as required, 99.95% uptime guaranteed, No hardware maintenance, Simple backup and monitoring, Unbeatable pricing.

Visit Website

11 easy ways to use Nginx FastCGI Cache

Blog

This article shows you 11 easy ways to use Nginx FastCGI Cache, this can greatly increase WordPress performance, also will significantly improve your WordPress site speed.
Nginx FastCGI Cache is NGINX server-side page caching, you will need a VPS / Dedicated server to use Nginx FastCGI Cache. When using regular shared hosting, Nginx FastCGI Cache is not available. With proper setup, Nginx FastCGI Cache can perform better than any WordPress cache plugin.
Demo domain: blogwp.ovh
Please replace blogwp.ovh with your own domain name.
Twenty Twenty-One theme with default demo site
The VPS used in this article: Vultr (1GB RAM, 1 vCore)
Get $100 of free Vultr credits if you sign up through this link!

https://blogelegant.com/ build with Hostwinds KVM VPS and Nginx FastCGI Cache.
Affiliate Disclosure: This page contains affiliate links. If you click through and purchase an item, I may earn a commission.
Nginx FastCGI Cache Vs Nginx FastCGI Cache + Redis Object Cache Vs Redis Full-Page Cache Vs LiteSpeed Cache
This article shows you page caching performance comparation: Nginx FastCGI Cache Vs Nginx FastCGI Cache + Redis Object Cache Vs Redis Full-Page Cache Vs LiteSpeed Cache

Method 1: Install Nginx FastCGI Cache in Webinoly
Webinoly supports Ubuntu 20.04 LTS & Ubuntu 18.04 LTS
You can read this article for a detailed installation of Webinoly

How To Install WordPress with Webinoly (Enable Nginx FastCGI Cache)
This tutorial shows you how to install WordPress with Webinoly (Enable Nginx FastCGI Cache)

1、Quick Setup, install LEMP Stack

wget -qO weby qrok.es/wy && sudo bash weby 3
[email protected]:~# wget -qO weby qrok.es/wy && sudo bash weby 3
Downloading... Successful!

MySQL has been installed successfully!
phpMyAdmin has been installed successfully!


****************************************************************************
******            INSTALLATION HAS FINISHED SUCCESSFULLY              ******
****************************************************************************
********      Save your DB access password in a secure place:       ********
******      root: 2jKzuIYS0WyctnJu       admin: xNAh1n2QzOqRzexV      ******
****************************************************************************


****************************************************************************
************************     D O N A T I O N S     *************************
***   If you like Webinoly, buy me a coffee or a beer to show support.   ***
****************************************************************************
*************     Bitcoin: 1E3Ybo5UcvaAr1MoK4nBnMRFFY9aEMiku3     **********
*******   GitHub Sponsors: https://github.com/sponsors/QROkes     **********
***************    PayPal: https://www.paypal.me/qrokes     ****************
****************************************************************************
***   Your regular donations is what keep this project moving forward.   ***
****************************************************************************

2、Install WordPress, enable Nginx FastCGI Cache

sudo site blogwp.ovh -wp -cache=on
[email protected]:~# sudo site blogwp.ovh -wp -cache=on

Downloading WordPress...


[WARNING] HTTP Authentication Credentials not found and you may need it to complete the WordPress installation process!!
[WARNING] Login for www-data is not enabled and you may need it to upload your site files!

 Nginx Helper Plugin has been installed!
 Please, activate this plugin for a better experience with FastCgi Cache.
 ** IMPORTANT - Plugin Settings **
- The “Caching Method” should be set to “Nginx FastCgi Cache”.
- Support for purge/url method is a premium feature only included in NGINX Plus (not-free) and we recommend not to trust in solutions or tools that use third-party NGINX modules to offer this feature.
- The Purge Method should be set to “Delete local server cache file”.


 Redis Object Cache Plugin has been installed!
 Please, activate this plugin for a better experience with WordPress Object Cache.
 ** IMPORTANT - Plugin Settings **
- Go to “Menu > Settings > Redis” and be sure that Object Cache is enabled.

WordPress Cache successfully enabled!
Site blogwp.ovh has been successfully created!

At this point, several plugins have been installed in the WordPress, if you only need Nginx FastCgi Cache, then keep Nginx Helper plugin and delete Redis Object Cache and other plugins.
Nginx Helper Plugin Settings ( When You use Webinoly )


The “Caching Method” should be set to “Nginx FastCgi Cache”.
The Purge Method should be set to “Delete local server cache file”.

3、Check If Nginx FastCGI Cache Works
Open Chrome in an incognito window, pressing F12 to open Web Developer Tools, click the “Network” tab, refresh the page. Click post like hello-world form the “Name” tab, if shows x-cache-status: HIT form the “Headers” tab, then the page has cached and served from the cache.

Method 2: Install Nginx FastCGI Cache in WordOps
WordOps supports Ubuntu 20.04 LTS & Ubuntu 18.04 LTS, also compatible with Ubuntu 16.04 LTS, Debian 9, Debian 10, Raspbian 9, Raspbian 10
You can read this article for a detailed installation of WordOps

How To Install WordPress with WordOps (Enable Nginx FastCGI Cache)
This tutorial shows you how to install WordPress with WordOps (Enable Nginx FastCGI Cache)

1、Install WordOps

wget -qO wo wops.cc && sudo bash wo
[email protected]:~# wget -qO wo wops.cc && sudo bash wo

Welcome to WordOps install/update script v3.13.2

Installing wo dependencies      [OK]
Installing WordOps      [OK]
Running post-install steps      [OK]
WordOps (wo) require an username & and an email address to configure Git (used to save server configurations)
Your informations will ONLY be stored locally
Enter your name: blogwpwpblog
Enter your email: [email protected]
Synchronizing wo database, please wait...
WordOps (wo) installed successfully

To enable bash-completion, just use the command:
bash -l

To install WordOps recommended stacks, you can use the command:
wo stack install

To create a first WordPress site, you can use the command:
wo site create site.tld --wp

WordOps Documentation : https://docs.wordops.net
WordOps Community Forum : https://community.wordops.net
WordOps Community Chat : https://chat.wordops.net

Give WordOps a GitHub star : https://github.com/WordOps/WordOps/
Note:
Please replace blogwpwpblog with your own name
Please replace [email protected] with your own email

2、Install WordPress + Nginx FastCGI Cache

wo site create blogwp.ovh --wpfc
[email protected]:~# wo site create blogwp.ovh --wpfc
Start : wo-kernel [OK]
Adding repository for MySQL, please wait...
Adding repository for NGINX, please wait...
Adding repository for PHP, please wait...
Updating apt-cache              [OK]
Installing APT packages         [OK]
Applying Nginx configuration templates
Testing Nginx configuration     [OK]
Restarting Nginx                [OK]
Testing Nginx configuration     [OK]
Restarting Nginx                [OK]
Configuring php7.3-fpm
Restarting php7.3-fpm           [OK]
Tuning MySQL configuration      [OK]
Restarting mysql                [OK]
Running pre-update checks       [OK]
Setting up NGINX configuration  [Done]
Setting up webroot              [Done]
Downloading WordPress           [Done]
Setting up database             [Done]
Configuring WordPress           [OK]
Installing WordPress            [OK]
Installing plugin nginx-helper  [OK]
Setting plugin nginx-helper     [OK]
Testing Nginx configuration     [OK]
Reloading Nginx                 [OK]
HTTP Auth User Name: WordOps
HTTP Auth Password : SCmZCObBAHCF1bySFDRD1oAT
WordOps backend is available on https://45.76.235.113:22222 or https://blogwp-test:22222
WordPress admin user : blogwpwpblog
WordPress admin password : m7VdFhn8WyzD20pQaYbKRSw9
Nginx-Helper configuration :    http://blogwp.ovh/wp-admin/options-general.php?page=nginx
Successfully created site http://blogwp.ovh

3、Check If Nginx FastCGI Cache Works
Open Chrome in an incognito window, pressing F12 to open Web Developer Tools, click the “Network” tab, refresh the page. Click post like hello-world form the “Name” tab
if shows x-fastcgi-cache: HIT form the “Headers” tab, then the page has cached and served from the cache.

Method 3: Install Nginx FastCGI Cache in SlickStack
SlickStack supports Ubuntu 20.04 LTS
You can read this article for a detailed installation of SlickStack

How To Install WordPress with SlickStack (Enable Nginx FastCGI Cache)
This tutorial shows you how to install WordPress with SlickStack (Enable Nginx FastCGI Cache). In this tutorial, i use Cloudflare DNS for my DNS provider (Note: Before install SlickStack, you should had activated CloudFlare for your domain)

1、Install SlickStack + WordPress + Nginx FastCGI Cache

cd /tmp/ && wget -O ss slick.fyi && bash ss

2、Check If Nginx FastCGI Cache Works
Open Chrome in an incognito window, pressing F12 to open Web Developer Tools, click the “Network” tab, refresh the page. Click post like hello-world form the “Name” tab
if shows x-fastcgi-cache: HIT form the “Headers” tab, then the page has cached and served from the cache.

Method 4: Use Nginx FastCGI Cache via Trellis
Trellis is a modern LEMP stack, it supports Ubuntu 20.04 LTS & Ubuntu 18.04 LTS. Trellis has many features including Nginx FastCGI Cache feature.

Method 5: Use Nginx FastCGI Cache via RunCloud (Need paid plan)
RunCloud supported cloud providers: DigitalOcean, Vultr, Linode, UpCloud, Amazon Lightsail, Google Cloud Platform, Amazon Web Services, Microsoft Azure.
RunCloud has released the Nginx FastCGI Cache feature as further enhancements to their RunCache feature.
1、Enable Nginx FastCGI Cache
Go to the RunCloud Hub menu under your web application in the RunCloud panel, choose “FastCGI/Proxy Page Caching”, click “Install RunCloud Hub” button.


Image source: runcloud.io
2、Check If Nginx FastCGI Cache Works
if shows x-runcloud-cache: HIT, then the page has cached and served from the cache.

Method 6: Use Nginx FastCGI Cache via GridPane (Need paid plan)
GridPane supported VPS providers: DigitalOcean, Vultr, Linode, Amazon Lightsail, and UpCloud
1、Enable Nginx FastCGI Cache
Click on your site in the panel to open the site “Settings”, toggle the “Nginx FastCGI Page Caching” switch to on.

2、Nginx FastCGI Cache Purging (GridPane)
when you enable GridPane Nginx FastCGI Caching, your website will auto-install and activate the Nginx Helper and GridPane Nginx Cache Purger plugins.
Nginx Helper Plugin Settings (When You use GridPane)
The “Caching Method” should be set to “Nginx FastCgi Cache”.
The Purge Method should be set to “Using a GET request to PURGE/url”.
GridPane Nginx Cache Purger plugin can be used for purge all site cache.
Note: “Nginx Helper” plugin support for purging redis full-page cache and Nginx FastCGI Cache.  “Nginx Helper” plugin does not support for purging Redis Object Cache.

3、Check If Nginx FastCGI Cache Works
Open Chrome in an incognito window, pressing F12 to open Web Developer Tools, click the “Network” tab, refresh the page. Click post form the “Name” tab
if shows x-cache-status: HIT form the “Headers” tab, then the page has cached and served from the cache.

Method 7: Use Nginx FastCGI Cache via SpinupWP (Need paid plan)
SpinupWP supported VPS providers: DigitalOcean, Linode, Amazon Web Services, and any other provider.
SpinupWP has many features including Nginx FastCGI Cache feature.

Method 8: Use Nginx FastCGI Cache via Ploi
Ploi supported VPS providers: DigitalOcean, UpCloud, Vultr, Linode, Scaleway, Hetzner, AWS EC2, or Custom VPS.
1、Enable Nginx FastCGI Cache
Go to the “Manage” menu under your “sites” in the Ploi panel, click “FastCGI Cache”, click “Enable” button.


2、Check If Nginx FastCGI Cache Works
Open Chrome in an incognito window, pressing F12 to open Web Developer Tools, click the “Network” tab, refresh the page. Click post like hello-world form the “Name” tab
if shows x-fastcgi-cache: HIT form the “Headers” tab, then the page has cached and served from the cache.

Method 9: Use Nginx FastCGI Cache via WPCloudDeploy (Need paid plan)
WPCloudDeploy supported VPS providers: DigitalOcean, Linode, Vultr, AWS EC2, AWS Lightsail, Upcloud, Hetzner, Exoscale, Alibaba ECS
WPCloudDeploy has many features including Nginx FastCGI Cache feature.

Method 10: Use Nginx FastCGI Cache via D2C.io
D2C.io supported cloud providers: DigitalOcean, Vultr, Amazon Web Services, Google Cloud Platform, and UpCloud
D2C.io has many features including Nginx FastCGI Cache feature.

Method 11: Install Nginx FastCGI Cache in Centmin Mod (Beta)
Centmin Mod supports CentOS 6 & CentOS 7

Updating

Method 12: Use Nginx FastCGI Cache via cleavr.io (Need paid plan)
cleavr.io supported VPS providers: DigitalOcean, Vultr, Hetzner, Linode and Amazon Web Services


Enable Nginx FastCGI Cache:
Go to the “Sites” menu, click “FastCGI Cache”, click “ENABLE” button.

Method 13: Use Nginx FastCGI Cache via AgiusCloud (Free plan)
AgiusCloud supported VPS providers: DigitalOcean, Vultr, Linode
Enable Nginx FastCGI Cache:
When you use AgiusCloud to create WordPress site, you can choose “Fast-cache(Nginx)” from the “Cache” option.

Some WordPress hosting providers that support Nginx FastCGI Cache:
Kinsta – Managed WordPress Hosting
Flywheel – Managed WordPress Hosting
Rocket – Managed WordPress Hosting
Templ – Managed WordPress Hosting
RAIDBOXES – Managed WordPress Hosting
InMotion Hosting – Managed WordPress Hosting
RelyWP – Managed WordPress Hosting
10Web – Managed WordPress Hosting
Vodien – Managed WordPress Hosting

Conclusion:
Nginx FastCGI Cache is an excellent choice to speed up your WordPress website. In this article, I introduced many ways to install or use Nginx FastCGI Cache, Which method have you used? Please comment below, thank you.

Copied title and URL