Report this

What is the reason for this report?

How to setup FastCGI cache for WordPress sites?

Posted on December 27, 2021

After years of cPanel hosting I have considered to setup my own server in DigitalOcean for my high-traffic WordPress (WooCommerce). I am getting tired of dealing with shared hosting companies.

Also I don’t want to pay $300/mo for WP Engine or whatever. Other dropshipping guys have said a cloud server is enough to handle my traffic is maybe $5 or $10 each month.

I used Cloudflare for my CDN but I know caching is going to be critical for my site.

I know that Nginx FastCGI cache is the most popular option. However I’m used to only WordPress caching plugins.

Just for my information (not sure I will be able to do it alone) I would like to understand what is required if I will do:

  • setup new DO cloud server
  • install Nginx, PHP, MySQL etc
  • activate FastCGI cache
  • how to manage the settings in the future


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Indeed WordPress + Nginx + FastCGI + Cloudflare sounds like a very solid setup.

I could suggest the following approach:

  • To install WordPress with Nginx you can follow the steps here:

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-20-04

  • After that to enable FastCGI, you can follow the steps here:

https://www.digitalocean.com/community/tutorials/how-to-setup-fastcgi-caching-with-nginx-on-your-vps

On another note, make sure to also tweak your MySQL service for optimal performance by following the steps here:

https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mariadb-configuration-for-increased-performance-and-stability

Let me know how it goes! Regards, Bobby

Configura seu servidor com WordOps. Ele tem FastCGI e Redis integrados. É uma excelente opção para lojas com alto tráfego.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.