From fb7d75edade309c359c8fd39274b4131c7fd3fb6 Mon Sep 17 00:00:00 2001 From: Pantheon Automation Date: Fri, 24 May 2024 18:43:49 +0000 Subject: [PATCH] Release 2.0.0 --- assets/css/styles.css | 50 ++++++++++++++++++++++++++++++++ assets/css/styles.min.css | 1 + package-lock.json | 4 +-- package.json | 2 +- pantheon-advanced-page-cache.php | 4 +-- readme.txt | 6 ++-- 6 files changed, 59 insertions(+), 8 deletions(-) create mode 100644 assets/css/styles.css create mode 100644 assets/css/styles.min.css diff --git a/assets/css/styles.css b/assets/css/styles.css new file mode 100644 index 00000000..2f2bbac7 --- /dev/null +++ b/assets/css/styles.css @@ -0,0 +1,50 @@ +.pantheon-page-cache hr { + display: none; +} +.pantheon-page-cache tr.cache-default-max-age { + display: block; + padding: 10px; + background: #ffffff; + color: #1e1e1e; + box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1); +} +.pantheon-page-cache tr.cache-default-max-age td { + padding: 0; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age { + padding: 0 10px 10px 0; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age h3 { + margin-top: 0.5em; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age i { + margin-right: 10px; + line-height: 1em; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar { + background: #1d7afc; + color: #ffffff; + padding: 10px 0 10px 10px; + text-align: left; + display: block; + width: 100%; + margin-bottom: 1em; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a { + color: #ffffff; + text-decoration: underline; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a:hover, .pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a:active { + color: #ffffff; + text-decoration: none; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age select { + background-color: #ffffff; + color: #1e1e1e; + border: 1px solid #757575; + border-radius: 0; +} +.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-description { + color: #757575; + margin: 10px 0 0 0; +} \ No newline at end of file diff --git a/assets/css/styles.min.css b/assets/css/styles.min.css new file mode 100644 index 00000000..88f03fdb --- /dev/null +++ b/assets/css/styles.min.css @@ -0,0 +1 @@ +.pantheon-page-cache hr{display:none}.pantheon-page-cache tr.cache-default-max-age{display:block;padding:10px;background:#fff;color:#1e1e1e;box-shadow:0 0 10px 5px rgba(0,0,0,.1)}.pantheon-page-cache tr.cache-default-max-age td{padding:0}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age{padding:0 10px 10px 0}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age h3{margin-top:.5em}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age i{margin-right:10px;line-height:1em}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar{background:#1d7afc;color:#fff;padding:10px 0 10px 10px;text-align:left;display:block;width:100%;margin-bottom:1em}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a{color:#fff;text-decoration:underline}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a:active,.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-info-bar a:hover{color:#fff;text-decoration:none}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age select{background-color:#fff;color:#1e1e1e;border:1px solid #757575;border-radius:0}.pantheon-page-cache tr.cache-default-max-age .pantheon-cache-default-max-age-description{color:#757575;margin:10px 0 0} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 401fb61c..09555df1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pantheon-advanced-page-cache", - "version": "2.0.0-dev", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pantheon-advanced-page-cache", - "version": "2.0.0-dev", + "version": "2.0.0", "license": "GPL-2.0-only", "devDependencies": { "del": "^7.1.0", diff --git a/package.json b/package.json index 8afd0180..2d7a58fe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pantheon-advanced-page-cache", - "version": "2.0.0-dev", + "version": "2.0.0", "author": "Pantheon", "license": "GPL-2.0-only", "homepage": "https://github.com/pantheon-systems/pantheon-advanced-page-cache", diff --git a/pantheon-advanced-page-cache.php b/pantheon-advanced-page-cache.php index e5537698..06b130ff 100644 --- a/pantheon-advanced-page-cache.php +++ b/pantheon-advanced-page-cache.php @@ -7,7 +7,7 @@ * Author URI: https://pantheon.io * Text Domain: pantheon-advanced-page-cache * Domain Path: /languages - * Version: 2.0.0-dev + * Version: 2.0.0 * Requires at least: 6.4 * Tested up to: 6.5.3 * @@ -107,7 +107,7 @@ function pantheon_wp_prefix_surrogate_keys_with_blog_id( $keys ) { * * Expects that a bootstrap() function exists in the namespaced file. * - * @since 2.0.0-dev + * @since 2.0.0 * @return void */ function pantheon_bootstrap_namespaces() { diff --git a/readme.txt b/readme.txt index b5068f0d..568bb9ef 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: getpantheon, danielbachhuber, kporras07, jspellman, jazzs3quence, Tags: pantheon, cdn, cache Requires at least: 6.4 Tested up to: 6.5.3 -Stable tag: 2.0.0-dev +Stable tag: 2.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -360,7 +360,7 @@ Pantheon Advanced Page Cache integrates with WordPress plugins, including: See [CONTRIBUTING.md](https://github.com/pantheon-systems/wp-saml-auth/blob/master/CONTRIBUTING.md) for information on contributing. == Changelog == -= 2.0.0-dev = += 2.0.0 (24 May 2024) = * Adds new admin alerts and Site Health tests about default cache max age settings and recommendations [[#268](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/268), [#271](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/271)]. The default Pantheon GCDN cache max age value has been updated to 1 week in the [Pantheon MU plugin](https://github.com/pantheon-systems/pantheon-mu-plugin). For more information, see the [release note](https://docs.pantheon.io/release-notes/2024/04/pantheon-mu-plugin-1-4-0-update). * Updated UI in Pantheon Page Cache admin page when used in a Pantheon environment (with the Pantheon MU plugin). [[#272](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/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](https://github.com/pantheon-systems/pantheon-advanced-page-cache/pull/269)] @@ -442,7 +442,7 @@ See [CONTRIBUTING.md](https://github.com/pantheon-systems/wp-saml-auth/blob/mast * Initial release. == Upgrade Notice == -= 2.0.0-dev = += 2.0.0 (24 May 2024) = 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](https://docs.pantheon.io/guides/wordpress-configurations/wordpress-cache-plugin)) 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.