A2 Optimized WP - Version 2.1.4.5

Version Description

= 2.0.10.9 = Important security update. Please upgrade immediately.

= 2.0 = New GPL plugin, now updates are through the wordpress.org repository

Download this release

Release Info

Developer a2hosting
Plugin Icon 128x128 A2 Optimized WP
Version 2.1.4.5
Comparing to
See all releases

Code changes from version 2.1.4.4.3 to 2.1.4.5

Files changed (3) hide show
  1. A2_Optimized_Cache.php +1 -2
  2. a2-optimized.php +8 -3
  3. readme.txt +4 -1
A2_Optimized_Cache.php CHANGED
@@ -1001,8 +1001,7 @@ final class A2_Optimized_Cache {
1001
  }
1002
 
1003
  // check advanced-cache.php drop-in
1004
- // @TODO: Only check if caching is enabled
1005
- if ( ! file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) {
1006
  echo sprintf(
1007
  '<div class="notice notice-warning"><p>%s</p></div>',
1008
  sprintf(
1001
  }
1002
 
1003
  // check advanced-cache.php drop-in
1004
+ if ( ! file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) && is_plugin_active('litespeed-cache/litespeed-cache.php')) {
 
1005
  echo sprintf(
1006
  '<div class="notice notice-warning"><p>%s</p></div>',
1007
  sprintf(
a2-optimized.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: A2 Optimized WP
4
  Plugin URI: https://wordpress.org/plugins/a2-optimized/
5
- Version: 2.1.4.4.2
6
  Author: A2 Hosting
7
  Author URI: https://www.a2hosting.com/
8
  Description: A2 Optimized - WordPress Optimization Plugin
@@ -30,7 +30,7 @@ require_once 'A2_Optimized_DB_Optimizations.php';
30
 
31
  //constants
32
  define( 'A2OPT_VERSION', '2.1' );
33
- define( 'A2OPT_FULL_VERSION', '2.1.4' );
34
  define( 'A2OPT_MIN_PHP', '5.6' );
35
  define( 'A2OPT_MIN_WP', '5.1' );
36
  define( 'A2OPT_FILE', __FILE__ );
@@ -113,7 +113,12 @@ class A2_Optimized {
113
  }
114
 
115
  if (get_option('a2_cache_enabled') == 1) {
116
- add_action( 'plugins_loaded', [ 'A2_Optimized_Cache', 'init' ] );
 
 
 
 
 
117
  }
118
  register_deactivation_hook( __FILE__, [ 'A2_Optimized_Cache', 'on_deactivation' ] );
119
  register_uninstall_hook( __FILE__, [ 'A2_Optimized_Cache', 'on_uninstall' ] );
2
  /*
3
  Plugin Name: A2 Optimized WP
4
  Plugin URI: https://wordpress.org/plugins/a2-optimized/
5
+ Version: 2.1.4.5
6
  Author: A2 Hosting
7
  Author URI: https://www.a2hosting.com/
8
  Description: A2 Optimized - WordPress Optimization Plugin
30
 
31
  //constants
32
  define( 'A2OPT_VERSION', '2.1' );
33
+ define( 'A2OPT_FULL_VERSION', '2.1.4.5' );
34
  define( 'A2OPT_MIN_PHP', '5.6' );
35
  define( 'A2OPT_MIN_WP', '5.1' );
36
  define( 'A2OPT_FILE', __FILE__ );
113
  }
114
 
115
  if (get_option('a2_cache_enabled') == 1) {
116
+ if(is_plugin_active('litespeed-cache/litespeed-cache.php')){
117
+ A2_Optimized_Cache_Disk::clean();
118
+ update_option('a2_cache_enabled', 0);
119
+ } else {
120
+ add_action( 'plugins_loaded', [ 'A2_Optimized_Cache', 'init' ] );
121
+ }
122
  }
123
  register_deactivation_hook( __FILE__, [ 'A2_Optimized_Cache', 'on_deactivation' ] );
124
  register_uninstall_hook( __FILE__, [ 'A2_Optimized_Cache', 'on_uninstall' ] );
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: A2BCool, a2hosting, dmatteson, sputala
3
  Tags: Speed, Optimize, Secure, Fast, LiteSpeed, LSCache, A2, Hosting
4
  Requires at least: 5.1
5
  Tested up to: 6.0
6
- Stable tag: 2.1.4.4.3
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -133,6 +133,9 @@ Yes. A2 Optimized works on any host that supports WordPress; however, A2 Hostin
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 2.1.4 =
137
  * Added Scheduled Database Optimizations.
138
  * Added support for redis object caching on A2 Hosting.
3
  Tags: Speed, Optimize, Secure, Fast, LiteSpeed, LSCache, A2, Hosting
4
  Requires at least: 5.1
5
  Tested up to: 6.0
6
+ Stable tag: 2.1.4.5
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
133
 
134
  == Changelog ==
135
 
136
+ = 2.1.4 =
137
+ * Fix for issue where TurboCache was not being correctly identified.
138
+
139
  = 2.1.4 =
140
  * Added Scheduled Database Optimizations.
141
  * Added support for redis object caching on A2 Hosting.