Version Description
Download this release
Release Info
Developer | sstoqnov |
Plugin | SG Optimizer |
Version | 5.6.5 |
Comparing to | |
See all releases |
Code changes from version 5.6.4 to 5.6.5
core/Front_End_Optimization/Front_End_Optimization.php
CHANGED
@@ -328,8 +328,16 @@ class Front_End_Optimization {
|
|
328 |
* @return string $src The modified src if there are query strings, the initial src otherwise.
|
329 |
*/
|
330 |
public static function remove_query_strings( $src ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
// Skip all external sources.
|
332 |
-
if ( @strpos( Helper::get_home_url(),
|
333 |
return $src;
|
334 |
}
|
335 |
|
@@ -567,7 +575,6 @@ class Front_End_Optimization {
|
|
567 |
return;
|
568 |
}
|
569 |
|
570 |
-
Supercacher::delete_assets();
|
571 |
Supercacher::purge_cache();
|
572 |
Supercacher::flush_memcache();
|
573 |
|
328 |
* @return string $src The modified src if there are query strings, the initial src otherwise.
|
329 |
*/
|
330 |
public static function remove_query_strings( $src ) {
|
331 |
+
// Get the host.
|
332 |
+
$host = parse_url( $src, PHP_URL_HOST );
|
333 |
+
|
334 |
+
// Bail if the host is empty.
|
335 |
+
if ( empty( $host ) ) {
|
336 |
+
return $src;
|
337 |
+
}
|
338 |
+
|
339 |
// Skip all external sources.
|
340 |
+
if ( @strpos( Helper::get_home_url(), $host ) === false ) {
|
341 |
return $src;
|
342 |
}
|
343 |
|
575 |
return;
|
576 |
}
|
577 |
|
|
|
578 |
Supercacher::purge_cache();
|
579 |
Supercacher::flush_memcache();
|
580 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Hristo Sg, siteground, sstoqnov, stoyangeorgiev
|
|
3 |
Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
|
4 |
Requires at least: 4.7
|
5 |
Requires PHP: 5.5
|
6 |
-
Tested up to: 5.5.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -208,6 +208,9 @@ Our plugin uses a cookie in order to function properly. It does not store person
|
|
208 |
|
209 |
== Changelog ==
|
210 |
|
|
|
|
|
|
|
211 |
= Version 5.6.4 =
|
212 |
* Fix error in CSS Combinator
|
213 |
|
3 |
Tags: nginx, caching, speed, memcache, memcached, performance, siteground, nginx, supercacher
|
4 |
Requires at least: 4.7
|
5 |
Requires PHP: 5.5
|
6 |
+
Tested up to: 5.5.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
208 |
|
209 |
== Changelog ==
|
210 |
|
211 |
+
= Version 5.6.5 =
|
212 |
+
* Improved Elementor Pro 3.0 support
|
213 |
+
|
214 |
= Version 5.6.4 =
|
215 |
* Fix error in CSS Combinator
|
216 |
|
sg-cachepress.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: SG Optimizer
|
11 |
* Plugin URI: https://siteground.com
|
12 |
* Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
|
13 |
-
* Version: 5.6.
|
14 |
* Author: SiteGround
|
15 |
* Author URI: https://www.siteground.com
|
16 |
* Text Domain: sg-cachepress
|
@@ -31,7 +31,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
31 |
|
32 |
// Define version constant.
|
33 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
34 |
-
define( __NAMESPACE__ . '\VERSION', '5.6.
|
35 |
}
|
36 |
|
37 |
// Define slug constant.
|
10 |
* Plugin Name: SG Optimizer
|
11 |
* Plugin URI: https://siteground.com
|
12 |
* Description: This plugin will link your WordPress application with all the performance optimizations provided by SiteGround
|
13 |
+
* Version: 5.6.5
|
14 |
* Author: SiteGround
|
15 |
* Author URI: https://www.siteground.com
|
16 |
* Text Domain: sg-cachepress
|
31 |
|
32 |
// Define version constant.
|
33 |
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
34 |
+
define( __NAMESPACE__ . '\VERSION', '5.6.5' );
|
35 |
}
|
36 |
|
37 |
// Define slug constant.
|