Version Description
Download this release
Release Info
Developer | sstoqnov |
Plugin | SG Optimizer |
Version | 5.2.1 |
Comparing to | |
See all releases |
Code changes from version 5.2.0 to 5.2.1
- core/Supercacher/Supercacher.php +1 -1
- readme.txt +3 -0
- sg-cachepress.php +2 -2
core/Supercacher/Supercacher.php
CHANGED
@@ -177,7 +177,7 @@ class Supercacher {
|
|
177 |
return;
|
178 |
}
|
179 |
|
180 |
-
$hostname = parse_url( home_url(), PHP_URL_HOST );
|
181 |
$cache_server_socket = @fsockopen( $hostname, 80, $errno, $errstr, 2 );
|
182 |
|
183 |
if ( ! $cache_server_socket ) {
|
177 |
return;
|
178 |
}
|
179 |
|
180 |
+
$hostname = str_replace( 'www.', '', parse_url( home_url(), PHP_URL_HOST ) );
|
181 |
$cache_server_socket = @fsockopen( $hostname, 80, $errno, $errstr, 2 );
|
182 |
|
183 |
if ( ! $cache_server_socket ) {
|
readme.txt
CHANGED
@@ -169,6 +169,9 @@ Our plugin uses a cookie in order to function properly. It does not store person
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
172 |
= Version 5.2.0 =
|
173 |
* Exclude list Interface for JavaScript handlers
|
174 |
* Exclude list Interface for CSS handlers
|
169 |
|
170 |
== Changelog ==
|
171 |
|
172 |
+
= Version 5.2.1 =
|
173 |
+
* Improved Cloudflare compatibility
|
174 |
+
|
175 |
= Version 5.2.0 =
|
176 |
* Exclude list Interface for JavaScript handlers
|
177 |
* Exclude list Interface for CSS handlers
|
sg-cachepress.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: SG Optimizer
|
11 |
* Plugin URI: http://siteground.com
|
12 |
* Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
|
13 |
-
* Version: 5.2.
|
14 |
* Author: SiteGround
|
15 |
* Text Domain: sg-cachepress
|
16 |
* Domain Path: /languages
|
@@ -30,7 +30,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
30 |
|
31 |
// Define version constant.
|
32 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
33 |
-
define( __NAMESPACE__ . '\VERSION', '5.2.
|
34 |
}
|
35 |
|
36 |
// Define slug constant.
|
10 |
* Plugin Name: SG Optimizer
|
11 |
* Plugin URI: http://siteground.com
|
12 |
* Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
|
13 |
+
* Version: 5.2.1
|
14 |
* Author: SiteGround
|
15 |
* Text Domain: sg-cachepress
|
16 |
* Domain Path: /languages
|
30 |
|
31 |
// Define version constant.
|
32 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
33 |
+
define( __NAMESPACE__ . '\VERSION', '5.2.1' );
|
34 |
}
|
35 |
|
36 |
// Define slug constant.
|