A2 Optimized WP - Version 2.1.3.8

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.3.8
Comparing to
See all releases

Code changes from version 2.1.3.7 to 2.1.3.8

Files changed (3) hide show
  1. A2_Optimized_CacheDisk.php +2 -2
  2. a2-optimized.php +1 -1
  3. readme.txt +1 -1
A2_Optimized_CacheDisk.php CHANGED
@@ -122,7 +122,7 @@ final class A2_Optimized_Cache_Disk {
122
  $expires_seconds = 60 * 60 * A2_Optimized_Cache_Engine::$settings['cache_expiry_time'];
123
 
124
  // check if cached page has expired
125
- if ( ( filemtime( self::cache_file_html() ) + $expires_seconds ) <= $now ) {
126
  return true;
127
  }
128
 
@@ -536,7 +536,7 @@ final class A2_Optimized_Cache_Disk {
536
  }
537
 
538
  // check modified since with cached file and return 304 if no difference
539
- if ( $http_if_modified_since && ( strtotime( $http_if_modified_since ) >= filemtime( self::cache_file_html() ) ) ) {
540
  header( $_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified', true, 304 );
541
  exit;
542
  }
122
  $expires_seconds = 60 * 60 * A2_Optimized_Cache_Engine::$settings['cache_expiry_time'];
123
 
124
  // check if cached page has expired
125
+ if ( file_exists( self::cache_file_html() ) && ( @filemtime( self::cache_file_html() ) + $expires_seconds ) <= $now ) {
126
  return true;
127
  }
128
 
536
  }
537
 
538
  // check modified since with cached file and return 304 if no difference
539
+ if ( $http_if_modified_since && file_exists( self::cache_file_html() ) && ( strtotime( $http_if_modified_since ) >= @filemtime( self::cache_file_html() ) ) ) {
540
  header( $_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified', true, 304 );
541
  exit;
542
  }
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.3.7
6
  Author: A2 Hosting
7
  Author URI: https://www.a2hosting.com/
8
  Description: A2 Optimized - WordPress Optimization Plugin
2
  /*
3
  Plugin Name: A2 Optimized WP
4
  Plugin URI: https://wordpress.org/plugins/a2-optimized/
5
+ Version: 2.1.3.8
6
  Author: A2 Hosting
7
  Author URI: https://www.a2hosting.com/
8
  Description: A2 Optimized - WordPress Optimization Plugin
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: A2BCool, a2hosting, dmatteson, sputala
3
  Tags: Speed, Optimize, Secure, Fast, W3 Total Cache, W3TC, Hosting
4
  Requires at least: 5.1
5
  Tested up to: 5.8.1
6
- Stable tag: 2.1.3.7
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
3
  Tags: Speed, Optimize, Secure, Fast, W3 Total Cache, W3TC, Hosting
4
  Requires at least: 5.1
5
  Tested up to: 5.8.1
6
+ Stable tag: 2.1.3.8
7
  Requires PHP: 5.6
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html