Bust the Nginx FastCGI Cache when entries are saved or created.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status

FastCGI Cache Bust plugin for Craft CMS 3.x

Bust the Nginx FastCGI Cache when entries are saved or created.


Related: FastCGI Cache Bust for Craft 2.x


This plugin requires Craft CMS 3.0.0-RC1 or later.


To install FastCGI Cache Bust, follow these steps:

  1. Install with Composer via composer require nystudio107/craft-fastcgicachebust from your project directory
  2. Install plugin in the Craft Control Panel under Settings > Plugins

You can also install FastCGI Cache Bust via the Plugin Store in the Craft AdminCP.

FastCGI Cache Bust works on Craft 3.x.

FastCGI Cache Bust Overview

FastCGI Cache Bust is a simple plugin that clears your entire FastCGI Cache any time an entry is saved. This is somewhat of a scortched earth approach to cache invalidation, but it ensure cache coherency.

Check out the article Static Page Caching with Craft CMS for details on how to set up FastCGI Cache on your website.

Configuring FastCGI Cache Bust

Click on the gear icon next to the plugin to configure it by adding the full absolute path to your Nginx FastCGI Cache directory. If you require more than one FastCGI Cache directory cleared, separate the paths with a comma (,).

Using FastCGI Cache Bust

FastCGI Cache Bust listens for elements being saved, and busts the entire FastCGI Cache automatically when that happens.

FastCGI Cache Bust will also bust the entire FastCGI Cache whenever Template caches are deleted.

You can also manually clear the FastCGI Cache via Craft's 'Clear Caches' tool

FastCGI Cache Bust Roadmap

Some things to do, and ideas for potential features:

  • We could invalidate only affected caches onElementSave instead of the entire cache

Brought to you by nystudio107