Cache Enabler – WordPress Cache - Version 1.8.5

Version Description

  • Update required WordPress version from 5.5 to 5.1 (#295)
  • Fix plugin upgrade process when disk settings are outdated and a frontend page is requested (#295)
Download this release

Release Info

Developer keycdn
Plugin Icon 128x128 Cache Enabler – WordPress Cache
Version 1.8.5
Comparing to
See all releases

Code changes from version 1.8.4 to 1.8.5

cache-enabler.php CHANGED
@@ -6,7 +6,7 @@ Description: Simple and fast WordPress caching plugin.
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
- Version: 1.8.4
10
  */
11
 
12
  /*
6
  Author: KeyCDN
7
  Author URI: https://www.keycdn.com
8
  License: GPLv2 or later
9
+ Version: 1.8.5
10
  */
11
 
12
  /*
constants.php CHANGED
@@ -6,7 +6,7 @@
6
  */
7
 
8
  $cache_enabler_constants = array(
9
- 'CACHE_ENABLER_VERSION' => '1.8.4',
10
  'CACHE_ENABLER_MIN_PHP' => '5.6',
11
  'CACHE_ENABLER_MIN_WP' => '5.5',
12
  'CACHE_ENABLER_DIR' => __DIR__,
6
  */
7
 
8
  $cache_enabler_constants = array(
9
+ 'CACHE_ENABLER_VERSION' => '1.8.5',
10
  'CACHE_ENABLER_MIN_PHP' => '5.6',
11
  'CACHE_ENABLER_MIN_WP' => '5.5',
12
  'CACHE_ENABLER_DIR' => __DIR__,
inc/cache_enabler_disk.class.php CHANGED
@@ -1002,18 +1002,20 @@ final class Cache_Enabler_Disk {
1002
  * Get the plugin settings from the settings file for the current site.
1003
  *
1004
  * This will create the settings file if it does not exist and the cache engine
1005
- * was started late. It can update the disk and backend requirements and then
1006
- * clear the complete cache if the settings are outdated. Having the backend
1007
- * updated will trigger a new settings file to be created, which if created would
1008
- * result the settings from that new file being returned.
 
 
1009
  *
1010
  * @since 1.5.0
1011
  * @since 1.8.0 The `$update` parameter was added.
1012
- * @change 1.8.0
1013
  *
1014
  * @param bool $update Whether to update the disk and backend requirements if the settings are
1015
  * outdated. Default true.
1016
- * @return array Plugin settings from the settings file, empty array on failure.
1017
  */
1018
  public static function get_settings( $update = true ) {
1019
 
@@ -1041,8 +1043,6 @@ final class Cache_Enabler_Disk {
1041
  if ( $outdated_settings ) {
1042
  if ( $update ) {
1043
  Cache_Enabler::update();
1044
- wp_opcache_invalidate( $settings_file );
1045
- $settings = self::get_settings( false );
1046
  }
1047
  } else {
1048
  $settings_file = self::create_settings_file( Cache_Enabler::get_settings() );
1002
  * Get the plugin settings from the settings file for the current site.
1003
  *
1004
  * This will create the settings file if it does not exist and the cache engine
1005
+ * was started late. If that occurs, the settings from the new settings file will
1006
+ * be returned.
1007
+ *
1008
+ * This can update the disk and backend requirements and then clear the complete
1009
+ * cache if the settings are outdated. If that occurs, a new settings file will be
1010
+ * created and an empty array returned.
1011
  *
1012
  * @since 1.5.0
1013
  * @since 1.8.0 The `$update` parameter was added.
1014
+ * @change 1.8.5
1015
  *
1016
  * @param bool $update Whether to update the disk and backend requirements if the settings are
1017
  * outdated. Default true.
1018
+ * @return array Plugin settings from the settings file, empty array when outdated or on failure.
1019
  */
1020
  public static function get_settings( $update = true ) {
1021
 
1043
  if ( $outdated_settings ) {
1044
  if ( $update ) {
1045
  Cache_Enabler::update();
 
 
1046
  }
1047
  } else {
1048
  $settings_file = self::create_settings_file( Cache_Enabler::get_settings() );
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === Cache Enabler ===
2
  Contributors: keycdn
3
  Tags: cache, caching, performance, webp, gzip, brotli, mobile, speed
4
- Requires at least: 5.5
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
  Stable tag: trunk
@@ -55,6 +55,10 @@ Cache Enabler captures page contents and saves it as a static HTML file on the s
55
 
56
  == Changelog ==
57
 
 
 
 
 
58
  = 1.8.4 =
59
  * Update `advanced-cache.php` drop-in file handling (#292)
60
 
1
  === Cache Enabler ===
2
  Contributors: keycdn
3
  Tags: cache, caching, performance, webp, gzip, brotli, mobile, speed
4
+ Requires at least: 5.1
5
  Tested up to: 5.8
6
  Requires PHP: 5.6
7
  Stable tag: trunk
55
 
56
  == Changelog ==
57
 
58
+ = 1.8.5 =
59
+ * Update required WordPress version from 5.5 to 5.1 (#295)
60
+ * Fix plugin upgrade process when disk settings are outdated and a frontend page is requested (#295)
61
+
62
  = 1.8.4 =
63
  * Update `advanced-cache.php` drop-in file handling (#292)
64