The Kinsta MU (must use plugin) has been designed to work on our WordPress hosting platform. It handles things such as our full page caching technology, as well as the Kinsta CDN integration.

By default, the Kinsta MU plugin is installed on every site that is hosted by us and is available from the left-hand side of your WordPress admin dashboard. The plugin is required to ensure your site runs smoothly in our environment.

Installing the Kinsta MU Plugin

If you’ve migrated your site yourself, you might need to install the Kinsta MU plugin manually.

Step 1: Create mu-plugins Folder

First, connect to your site via SFTP and create a folder called mu-plugins in your wp-content folder if it doesn’t already exist.

Step 2: Download and Unzip the Plugin

After ensuring the mu-plugins folder has been created, download the Kinsta MU-plugin and unzip it.

Step 3: Upload to Site

You’ll then need to upload the kinsta-mu-plugins folder and kinsta-mu-plugins.php file to the /wp-content/mu-plugins/directory.

Kinsta MU plugins

Kinsta MU plugins

If the /wp-content/mu-plugins/ directory doesn’t exist, create it first and then drop in the above file and folder.

mu-plugins folder

mu-plugins folder

Kinsta MU Plugin Settings

The Kinsta MU plugin is set to work harmoniously with WordPress and our infrastructure, and on most sites won’t need any modifications. This enables automatic clearing of cache on important parts of your site when you make page and post content updates.

Kinsta cache plugin

Kinsta cache plugin

You can also manually clear the cache on your WordPress site with the following methods.

  1. Press the “Clear Cache” button within the Kinsta Cache plugin
  2. Press the “Clear Cache” button on the WordPress admin toolbar
  3. Clear cache from within the MyKinsta dashboard
Clear cache WordPress dashboard

Clear cache WordPress dashboard

Adding Custom Caching URLs

We already purge single pages and key pages such as the home page immediately and impose a minimal throttle time on archive pages. This ensures high availability at all times. However, depending on how your site’s configuration, additional caching rules might be needed. You can add custom paths to purge whenever your site is updated.

1. Add Single Path Custom URL

If you need cache cleared on an exact URL (post or page), you can enter this as a single path rule. Example:

Cache - custom URL single path

Cache – custom URL single path

2. Add Group Path Custom URL

The group path purges all the URLs which start with that specific URL. This can be especially useful say if you have custom post type and need the cache cleared on it and the posts underneath it. For example, if you add as a group path URL, then it will purge the cache on the following:
Cache - custom URL group path

Cache – custom URL group path

Additional Notes

You aren’t allowed to add only “/” as a path, as this would trigger a clear of the full site’s cache with a post/page update. Purging all pages would take a significant toll on server resources especially during high load times and frequent publishing schedules. This could also degrade the performance of your site for visitors as it would have to re-cache everything.

If you have clients and prefer they not see any Kinsta branding, you can also white label the plugin.

If you enjoyed this tutorial, then you’ll love our support. All Kinsta’s hosting plans include 24/7 support from our veteran WordPress developers and engineers. Chat with the same team that backs our Fortune 500 clients. Check out our plans