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 | A2 Optimized WP |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- a2-optimized.php +1 -1
- object-cache.php +8 -6
- readme.txt +1 -1
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.
|
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
|
6 |
Author: A2 Hosting
|
7 |
Author URI: https://www.a2hosting.com/
|
8 |
Description: A2 Optimized - WordPress Optimization Plugin
|
object-cache.php
CHANGED
@@ -461,7 +461,7 @@ class WP_Object_Cache {
|
|
461 |
if (defined('MEMCACHED_SERVERS')) {
|
462 |
$buckets = MEMCACHED_SERVERS;
|
463 |
} else {
|
464 |
-
$buckets = array( '
|
465 |
}
|
466 |
|
467 |
reset( $buckets );
|
@@ -497,13 +497,15 @@ class WP_Object_Cache {
|
|
497 |
}
|
498 |
|
499 |
global $blog_id, $table_prefix;
|
500 |
-
$
|
501 |
-
$this->
|
|
|
502 |
if ( function_exists( 'is_multisite' ) ) {
|
503 |
-
|
504 |
-
|
|
|
505 |
}
|
506 |
-
|
507 |
$this->cache_hits = & $this->stats['get'];
|
508 |
$this->cache_misses = & $this->stats['miss'];
|
509 |
}
|
461 |
if (defined('MEMCACHED_SERVERS')) {
|
462 |
$buckets = MEMCACHED_SERVERS;
|
463 |
} else {
|
464 |
+
$buckets = array( 'localhost:55555' );
|
465 |
}
|
466 |
|
467 |
reset( $buckets );
|
497 |
}
|
498 |
|
499 |
global $blog_id, $table_prefix;
|
500 |
+
$key_hash = substr(md5(DB_NAME . $table_prefix), 0, 8);
|
501 |
+
$this->global_prefix = $key_hash . ':';
|
502 |
+
$this->blog_prefix = $key_hash . ':';
|
503 |
if ( function_exists( 'is_multisite' ) ) {
|
504 |
+
if (is_multisite()) {
|
505 |
+
$this->blog_prefix = substr(md5($table_prefix . $blog_id . $key_hash), 0, 8) . ':';
|
506 |
+
}
|
507 |
}
|
508 |
+
|
509 |
$this->cache_hits = & $this->stats['get'];
|
510 |
$this->cache_misses = & $this->stats['miss'];
|
511 |
}
|
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.7.1
|
6 |
-
Stable tag: 2.1.
|
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.7.1
|
6 |
+
Stable tag: 2.1.3
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|