2.0.0
- Adds new admin alerts and Site Health tests about default cache max age settings and recommendations [#268, #271]. The default Pantheon GCDN cache max age value has been updated to 1 week in the Pantheon MU plugin. For more information, see the release note.
- Updated UI in Pantheon Page Cache admin page when used in a Pantheon environment (with the Pantheon MU plugin). [#272]
- Automatically updates the cache max age to the recommended value (1 week) if it was saved at the old default value (600 seconds). [#269]
- Adds a hook into the
nonce_life
filter when nonces are created on the front-end to set thepantheon_cache_default_max_age
to less than the nonce lifetime to avoid nonces expiring before the cache does. [#282] props @ryanshoover
Upgrade Notice
This release requires a minimum WordPress version of 6.4.0. It uses Site Health checks and the wp_admin_notices
function to alert users to the new cache max-age default settings and recommendations. The plugin will still function with earlier versions, but you will not get the benefit of the alerts and Site Health checks.
This version also automatically updates the cache max age (set in the Pantheon Page Cache settings) to the recommended value (1 week) if it was saved at the old default value (600 seconds). If the cache max age was set to any other value (or not set at all), it will not be changed. A one-time notice will be displayed in the admin interface to inform administrators of this change.
Full Changelog: 1.5.0...2.0.0