By default, the Kinsta MU plugin 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: Download and Unzip the Plugin
First, download the Kinsta MU-plugin and unzip it.
Step 2: Upload to Site
You’ll then need to connect to your site via SFTP and upload the
kinsta-mu-plugins folder and
kinsta-mu-plugins.php file to the
/wp-content/mu-plugins/ directory doesn’t exist, create it first and then drop in the above file and 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.
You can also manually clear the cache on your WordPress site with the following methods.
- Press the “Clear Cache” button within the Kinsta Cache plugin
- Press the “Clear Cache” button on the WordPress admin toolbar
- Clear cache from within the MyKinsta 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:
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
https://yourdomain.com/custom-post-type/ as a group path URL, then it will purge the cache on the following:
https://yourdomain.com/custom-post-type/ https://yourdomain.com/custom-post-type/post-1 https://yourdomain.com/custom-post-type/post-2 https://yourdomain.com/custom-post-type/post-3
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