The Kinsta MU plugin is installed by default on every site hosted at Kinsta and is required to make sure your site runs smoothly in our environment.
Check out our documentation on how to manage its settings or update it.

Below you’ll find all notable changes to this project.

Kinsta MU Plugin, Version 2.4.8

Added

  • Added KINSTAMU_CACHE_PURGE_TIMEOUT to override the
    default 5 second timeout

Changed

  • Switched cache clearing calls to use curl instead of
    wp_remote_post

Fixed

  • Banned plugins banner is no longer broken for a deleted plugin not
    properly deactivated
  • Term and menu edits no longer purge the cache if
    KINSTAMU_DISABLE_AUTOPURGE is set to true

2.4.7

Added

  • Added WordPress-Docs to PHPCS standards.

Changed

  • Cache classes refactor to modernize code.

2.4.6

Added

  • New action hook after full page/object cache purging is
    complete.
  • New filter hook to block clearing cache from WP Admin.
  • Better detection for WordPress mobile mode via the wp_is_mobile
    filter.

Changed

  • Post types that are not viewable will no longer be purged from
    cache.

2.4.5

Fixed

  • Cache purge should now work again for comments added to a post via
    the front-end comments form.

2.4.4

Added

  • Cache purge will now happen automatically for term update and
    deletion.

2.4.3

Fixed

  • Make Admin Bar cache clear links request the plugin page so referrer
    works correctly.
  • Fix PHP warnings.

2.4.2

Fixed

  • Fix PHP to be testable with PHPCS against WordPress-Core coding
    standards
    .

Changed

  • Remove WP-Optimize from warning list.

2.4.1

Fixed

  • Fix referrer URL for Admin Bar cache clear links duplicating the
    Subsite path in Multisite Networks.

2.4.0

Added

  • Add Duplicator Pro to warning list.

2.3.9

Fixed

  • The Clear Cache links on the Admin Toolbar will now try to redirect
    to the referring URL instead of getting redirected to the admin-ajax.php
    URL displaying 0.
  • Fix accessibility issue on Clear Cache submenu when Object Cache is
    enabled.

2.3.8

Added

  • The plugin now has a local development environment to make
    development a better process for contributors.

2.3.7

Fixed

  • Undefined index in cache clear function.
  • Deprecated code for PHP 8.0.

2.3.4

Changed

  • UpdraftPlus removed from the banned plugins list.
  • EWWW Image Optimizer removed from the banned plugins list.

2.3.3

Changed

  • Banned plugins list update.
  • Plugin URL points to the Kinsta KB page.
  • Better cache purge hook handling on post status change.

Fixed

  • Undefined function get_current_screen in some cases.

2.3.2

Fixed

  • KINSTA_CDN_USERDIRS related bug fix.

2.3.1

Added

  • Disable Swift Performance plugin cache.

Changed

  • Wordfence plugin integration enhancements.

2.3.0

Added

  • Handling of CDN asset rewrites in REST API requests.

2.2.4

Changed

  • Quick fix: extend function result check.

2.2.3

Changed

  • Quick fix: a missing variable.

2.2.2

Changed

  • Quick fix: image source rewrite bug in case of assets starts with
    “//” or loaded from third-party source.

2.2.1

Changed

  • Quick fix: Undefined index: excludes.

2.2.0

Changed

  • Fixed minor dashboard issues.
  • Improved security.
  • Switched from absolute file path includes to the relative file
    path.
  • Prevent CDN rewriting of admin-ajax.php.
  • Rewrite Image Attachment URLs in WP-API sub-resources.

Added

  • Add an option to exclude file types from CDN URL.

2.1.2

Changed

  • Quick fix: removed unnecessary span tags from the plugin’s “Add A
    Custom URL” dashboard when the site has a very long domain.

2.1.1

Changed

  • Quick fix for an odd WP behavior of including the functions.php in
    the compat folder.

2.1.0

Changed

  • Removed the PushEngage plugin from the plugin warning list.
  • Removed the WordFence plugin from the plugin warning list.
  • Removed abandoned plugin API endpoints.

Added

  • Set WORDFENCE_DISABLE_LIVE_TRAFFIC to true and show
    error message if it is already set to false.

2.0.21

Changed

  • Fixed missing wp_json_encode function before WP
    4.1.
  • Fixed minor CSS issue.

2.0.20

Changed

  • Minor bug fixes.
  • Add UTM source to the Kinsta.com link.

Added

  • The KINSTAMU_ROLE constant.
  • The KINSTA_CDN_USERURL constant.
  • The wp kinsta plugin list WP CLI command.

2.0.19

Changed

  • Updated the white-labeling options for the banned plugin
    messages.

2.0.18

Added

  • PDF file is added to the CDN rewritable list.
  • Banned plugins are deactivated from now on.
  • Disallowed plugins are detected and a notice showed to the
    appropriate admin users.
  • These plugins can’t be installed via the online plugin installer
    from now on.

2.0.17

Changed

  • Updated an init hooks priority.

2.0.16

Added

  • Added a variable to prevent repeted single page cache purge during
    the same action.
  • Added a variable to prevent repeted all cache purge during the same
    init.
  • Added JS level HTML escape.

Changed

  • Update the cache purge class initiate order.
  • Fixed a white-label related minor issue.

2.0.15

Fixed

  • Backward compatible issue with WP Rocket plugin version 3.0.1.

2.0 – 2.0.14

Added

  • Integrated CDN.
  • A PHP constant for defining custom path for the mu plugin’s assets,
    e.g.
    define( 'KINSTAMU_CUSTOM_MUPLUGIN_URL', 'http://yourdomain.com/custom-wp-content/mu-plugins');.
  • A PHP constant for switching of the server level cache’s auto purge
    on add/update/delete posts, e.g.
    define('KINSTAMU_DISABLE_AUTOPURGE', true);.
  • WP CLI issue warning.
  • Sitemap to the purge list.
  • Purge list filters/hooks.
  • The KINSTA_CACHE_DEBUG constant.
  • Option to add further directories to the CDN replaceable paths.
  • Default AMP pages purge added.

Changed

  • New Kinsta UI design.

Fixed

  • Several multisite issues with purge part.
  • The og:images URL. It seems OG images don’t like the
    “//” beginning.
  • The RegEx made possible that some links which directly called from
    “/” were replaced.
  • Sometimes, the script made unnecessary replaces. Now it only does it
    when the asset belongs to the following extensions:
    ogg|ogv|svg|svgz|eot|otf|woff|woff2|mp4|mp3|ttf|css|js|jpg|jpeg|gif|png|ico|webp|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf.
  • Symlink issue with Bedrock installs. Using WPMU_PLUGIN_URL constant
    from now on.
  • HTTP – HTTPS asset issue when the site URL is HTTP but the site is
    called via HTTPS.
  • Poor looking URL path in case of long URL.
  • Text update related to Object Cache.
  • Some rare warning issues.
  • Feed URLs are purged inmediattely after updates.

1.5

Added

  • Timeouts to internal curl calls.

Changed

  • HTTP detection.
  • Replaced site_url() with home_url() to be
    more reliable.

Removed

  • Unnecessary remaining test files.