From ca76b78b3d4fa0ab436a098c8af4b73dd8168775 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Sat, 4 Sep 2021 10:46:37 -0500 Subject: [PATCH] Pods Alternative Cache 2.1.2 --- classes/Pods/Alternative/Cache/File.php | 6 ++-- pods-alternative-cache.php | 43 ++----------------------- readme.txt | 5 ++- 3 files changed, 9 insertions(+), 45 deletions(-) diff --git a/classes/Pods/Alternative/Cache/File.php b/classes/Pods/Alternative/Cache/File.php index c5c39792..2c02cb8c 100644 --- a/classes/Pods/Alternative/Cache/File.php +++ b/classes/Pods/Alternative/Cache/File.php @@ -134,10 +134,10 @@ public function delete_files_in_directory( $directory = null ) { // d = folder, f = file if ( 'd' === $file['type'] ) { - // Delete folder - $this->delete_files_in_directory( $file_path ); + // Delete folder. + $wp_filesystem->delete( $file_path, true, $file['type'] ); } else { - // Delete file + // Delete file. $wp_filesystem->delete( $file_path ); } diff --git a/pods-alternative-cache.php b/pods-alternative-cache.php index 314cc7b4..bd982713 100644 --- a/pods-alternative-cache.php +++ b/pods-alternative-cache.php @@ -3,12 +3,12 @@ Plugin Name: Pods Alternative Cache Plugin URI: https://pods.io/2014/04/16/introducing-pods-alternative-cache/ Description: Alternative caching engine for Pods for large sites on hosts with hard limits on how much you can store in the object cache -Version: 2.1.1 +Version: 2.1.2 Author: Pods Framework Team Author URI: https://pods.io/ */ -define( 'PODS_ALT_CACHE_VERSION', '2.1.1' ); +define( 'PODS_ALT_CACHE_VERSION', '2.1.2' ); define( 'PODS_ALT_CACHE_DIR', plugin_dir_path( __FILE__ ) ); /** @@ -369,42 +369,3 @@ function pods_alternative_cache_test_anon() { } add_action( 'init', 'pods_alternative_cache_test_anon' ); - -/** - * Register add-on with Pods Freemius connection. - */ -function pods_alternative_cache_freemius() { - try { - fs_dynamic_init( [ - 'id' => '5348', - 'slug' => 'pods-alternative-cache', - 'type' => 'plugin', - 'public_key' => 'pk_c51e7ff51e827ecaddb23664c050d', - 'is_premium' => false, - 'has_paid_plans' => false, - 'is_org_compliant' => true, - 'parent' => [ - 'id' => '5347', - 'slug' => 'pods', - 'public_key' => 'pk_737105490825babae220297e18920', - 'name' => 'Pods', - ], - 'menu' => [ - 'slug' => 'pods-settings', - 'contact' => false, - 'support' => false, - 'affiliation' => false, - 'account' => true, - 'pricing' => false, - 'addons' => true, - 'parent' => [ - 'slug' => 'pods', - ], - ], - ] ); - } catch ( \Exception $exception ) { - return; - } -} - -add_action( 'pods_freemius_init', 'pods_alternative_cache_freemius' ); diff --git a/readme.txt b/readme.txt index 3e9e1fa2..3c79818c 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: pods, cache, wpengine Requires at least: 3.8 Tested up to: 5.8 Requires PHP: 5.6 -Stable tag: 2.1.1 +Stable tag: 2.1.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -76,6 +76,9 @@ Disable object cache fallback, when File writes fail: == Changelog == += [2.1.2] September 4th, 2021 = +* Fixed: Now compatible with PHP 8.0+ + = [2.1.1] August 14th 2021 = * Tested against WordPress 5.8 for compatibility