From 73565979797a21b18f772089a5ec5510c5269d56 Mon Sep 17 00:00:00 2001 From: donnchawp Date: Wed, 10 Jul 2024 11:54:36 +0000 Subject: [PATCH] Backport super-cache 1.12.3 Changes (#38278) * Changelog and readme.txt edits. * Update the stable tag to 1.12.3 Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9873498071 Upstream-Ref: Automattic/jetpack@6e08792030134d5c3b48f1eb88ffa1c7c44dcf57 --- CHANGELOG.md | 14 ++++---------- composer.json | 2 +- package.json | 2 +- readme.txt | 24 ++++-------------------- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 8 ++++---- vendor/composer/autoload_static.php | 4 ++-- wp-cache.php | 2 +- 8 files changed, 18 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 766ad55b..e0cdcde5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,16 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [1.12.3-alpha] - unreleased - -This is an alpha version! The changes listed here are not final. - -### Changed -- Updated package dependencies. - +## [1.12.3] - 2024-07-10 ### Fixed -- WPSC: Don't delete the log viewer when doing garbage collection -- WPSC: fix clearing the cache when scheduled posts are published +- Don't delete the log viewer when doing garbage collection [#38276] +- Fix clearing the cache when scheduled posts are published [#38263] ## [1.12.2] - 2024-06-27 ### Added @@ -763,7 +757,7 @@ This is an alpha version! The changes listed here are not final. Misc fixes -[1.12.3-alpha]: https://github.com/Automattic/wp-super-cache/compare/v1.12.2...v1.12.3-alpha +[1.12.3]: https://github.com/Automattic/wp-super-cache/compare/v1.12.2...v1.12.3 [1.12.2]: https://github.com/Automattic/wp-super-cache/compare/v1.12.1...v1.12.2 [1.12.1]: https://github.com/Automattic/wp-super-cache/compare/v1.12.0...v1.12.1 [1.12.0]: https://github.com/Automattic/wp-super-cache/compare/v1.11.0...v1.12.0 diff --git a/composer.json b/composer.json index a34f643d..503b9773 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,6 @@ "wp-svn-autopublish": true }, "config": { - "autoloader-suffix": "6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha" + "autoloader-suffix": "6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3" } } diff --git a/package.json b/package.json index edd4900f..8c99c5d3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@automattic/jetpack-super-cache", - "version": "1.12.3-alpha", + "version": "1.12.3", "description": "A very fast caching engine for WordPress that produces static html files.", "homepage": "https://jetpack.com", "bugs": { diff --git a/readme.txt b/readme.txt index 16876a80..f59311c9 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: performance, caching, wp-cache, wp-super-cache, cache Requires at least: 6.4 Requires PHP: 7.0 Tested up to: 6.6 -Stable tag: 1.12.2 +Stable tag: 1.12.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -268,26 +268,10 @@ Your theme is probably responsive which means it resizes the page to suit whatev == Changelog == -### 1.12.2 - 2024-06-27 -#### Added -- add an admin notice to encourage migration to Jetpack Boost -- modify boost install code so it can be used by multiple buttons -- notify Boost of migration to that plugin - -#### Changed -- General: indicate compatibility with the upcoming version of WordPress - 6.6. -- tell user that Cache module of Boost must be deactivated to use WPSC -- WP Updated banner designs, added auto-install Jetpack Boost buttons - +### 1.12.3 - 2024-07-10 #### Fixed -- Detect when WP_CACHE is defined with "const" in wp-config.php -- Align detection of Boost installs with activation of that plugin -- create the cache directory before creating the config file -- do not show migration notice if already using Boost Cache -- fixed a PHP warning when deactivating the plugin. -- make sure plugins links is an array before using it. -- remove the preload interval based on the post count. Preload as often as you want. -- renamed WPSC_VERSION because it conflicted with other plugins +- Don't delete the log viewer when doing garbage collection +- Fix clearing the cache when scheduled posts are published -------- diff --git a/vendor/autoload.php b/vendor/autoload.php index 389d39db..9b006b66 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha::getLoader(); +return ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index b69fba7a..37b7db5a 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha +class ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3 { private static $loader; @@ -24,12 +24,12 @@ public static function getLoader() require __DIR__ . '/platform_check.php'; - spl_autoload_register(array('ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 0a5d3911..0805552d 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha +class ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3 { public static $classMap = array ( 'Automattic\\Jetpack\\Device_Detection' => __DIR__ . '/..' . '/automattic/jetpack-device-detection/src/class-device-detection.php', @@ -15,7 +15,7 @@ class ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_al public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->classMap = ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3_alpha::$classMap; + $loader->classMap = ComposerStaticInit6fe342bc02f0b440f7b3c8d8ade42286_super_cacheⓥ1_12_3::$classMap; }, null, ClassLoader::class); } diff --git a/wp-cache.php b/wp-cache.php index d8c89e19..91c8f7ff 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -3,7 +3,7 @@ * Plugin Name: WP Super Cache * Plugin URI: https://wordpress.org/plugins/wp-super-cache/ * Description: Very fast caching plugin for WordPress. - * Version: 1.12.3-alpha + * Version: 1.12.3 * Author: Automattic * Author URI: https://automattic.com/ * License: GPL2+