Nginx Cache

Plugin Banner

Nginx Cache

by Till Krüss

Download
Description

Purge the Nginx cache (FastCGI, Proxy, uWSGI) automatically when content changes or manually within WordPress.

Requirements:

  • The Filesystem API needs to function without asking for credentials.
  • Nginx and PHP need to run under the same user, or PHP’s user needs write access to Nginx’s cache path.

For detailed installation instructions, please read the standard installation procedure for WordPress plugins.

  1. Install and activate plugin.
  2. Enter “Cache Zone Path” under Tools -> Nginx.
  3. Done.
  1. Plugin settings page.

    Plugin settings page.

Another Outstanding Plugin

By E-Liquids UK (notblowingsmoke) on October 7, 2024

Another outstanding plugin from same developer who created Redis Object Cache Pro! The plugin is lightweight and effective for purging nginx cache, teaming this plugin with "syncthing" allows us to clear our caches across multiple servers in the pool. It's part of our core.

Works with 6.5.3

By imissit on May 7, 2024

Best plugin I've ever come across. Does the job, for free, asks nothing in return, and is insanely minimal. Till is a legend.

Don't be fooled by lack of updates

By keysuck on October 24, 2023

This plugin is the ONLY one that actually purges FastCGI cache without any impact to the website.

Simple & Perfect - Thanks

By Chinmay Rajyaguru (iNiS) on July 8, 2022

Easy to use, and Handy tool

Great plugin with some minor issues

By Gulshan Kumar (thegulshankumar) on June 29, 2022

Doesn't purge Hindi encoded URL permalink

Best (and free) WordPress cache plugin

By wudesign on January 31, 2022

I have tried almost every cache plugin for WordPress during 10 years, many of them are very lightweight (which I prefer) such as WP Super Cache, Fastest Cache, Comet Cache, Cache Enabler... they are all great and work well. (Other cache plugins like WP Rocket, Swift Performance, W3 Total Cache, Litespeed LS cache, Nitropack are too bloated imo.) After some years I learned that actually if you have Nginx servers, and enable the FastCGI cache... you don't need to use any "old-fashioned" cache plugins! Immediately I was addicted to this setup... launch $5 LEMP cloud server and enable FastCGI cache in my Nginx config, and fantastic performance with no more worrying about bloated plugins and errors with cache plugins. The problem? How to clear my Nginx cache? I was deleting the cache folder in my SSH window every time and super annoying. I discovered the EasyEngine plugin called Nginx Helper, it was fantastic! However, some of the settings did not require in my situation so I looked more. After that I finally found Mr. Till's Nginx Cache plugin and very lightweight... This plugin is what I use now, very easy and no bloat. I can use this plugin for all LEMP script like WordOps, SlickStack, and Webinoly and everything in my entire server is free open source software. Great work! And your Redis Cache plugin too, a perfect match.

Simple and objective

By andreorion on August 13, 2020

For those who do not know, it is necessary to enter linux to empty the cache with a command. This plugin, which looks silly, saves a lot of time. Thank you!

OMG! It works!!!!!!!

By Sim Architect (thesimarchitect) on August 12, 2020

Can't believe my eyes! I have been using SSH to flush my cache manually each time I update anything on my site, tried several plugins, tried to recompile NGINX a bunch of times as well, no success (and unable to afford NGINX Plus) for almost a year! Installed your plugin today, August 12, 2020, on the latest WordPress 5.5 and it works!!!!!!!! Thank you so very much 🤩

Awesome

By Nuno Sarmento (nunosarmento) on April 16, 2020

Good coding. Thank you

Perfect

By Danny van Kooten (DvanKooten) on November 4, 2019

Does one thing and does it well. Nice work! This allows me to simply use fastcgi_cache + this plugin and be done with it, versus much larger plugins like WP Super Cache.

1.0.7

  • Support newer versions of Nginx in validate_dirlist()

1.0.6

  • Fixed rare issue in validate_dirlist()

1.0.5

  • Added nginx_cache_zone_purged action

1.0.4

  • Improved translatable strings
  • Fixed auto-purge bug
  • Fixed bug when validating directory

1.0.3

  • Create cache directory if it doesn’t exists
  • Re-create cache directory after cache purge
  • Allow post types to be excluded from triggering a cache purge

1.0.2

  • Fixed 4.6 issue with file-system credentials

1.0.1

  • Improved testing of file-system credentials

1.0

  • Initial release
Back to top