Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release 2.0.0
Browse files Browse the repository at this point in the history
Pantheon Automation authored and jazzsequence committed May 24, 2024
1 parent abafe68 commit fb7d75e
Showing 6 changed files with 59 additions and 8 deletions.
50 changes: 50 additions & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions assets/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
4 changes: 2 additions & 2 deletions pantheon-advanced-page-cache.php
Original file line number Diff line number Diff line change
@@ -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() {
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit fb7d75e

Please sign in to comment.