SG Optimizer - Version 7.1.5

Version Description

Download this release

Release Info

Developer elenachavdarova
Plugin Icon 128x128 SG Optimizer
Version 7.1.5
Comparing to
See all releases

Code changes from version 7.1.4 to 7.1.5

core/Install_Service/Install_7_1_3.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
- namespace SiteGround_Optimizer\Install_Service;
3
-
4
- use SiteGround_Optimizer\Memcache\Memcache;
5
- use SiteGround_Optimizer\Options\Options;
6
-
7
- class Install_7_1_3 extends Install {
8
-
9
- /**
10
- * The default install version. Overridden by the installation packages.
11
- *
12
- * @since 7.1.3
13
- *
14
- * @access protected
15
- *
16
- * @var string $version The install version.
17
- */
18
- protected static $version = '7.1.3';
19
-
20
- /**
21
- * Run the install procedure.
22
- *
23
- * @since 7.1.3
24
- */
25
- public function install() {
26
-
27
- if ( Options::is_enabled( 'siteground_optimizer_enable_memcached' ) ) {
28
- $memcached = new Memcache();
29
- $memcached->remove_memcached_dropin();
30
- $memcached->create_memcached_dropin();
31
- }
32
- }
33
-
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
core/Install_Service/{Install_7_1_2.php → Install_7_1_5.php} RENAMED
@@ -4,23 +4,23 @@ namespace SiteGround_Optimizer\Install_Service;
4
  use SiteGround_Optimizer\Memcache\Memcache;
5
  use SiteGround_Optimizer\Options\Options;
6
 
7
- class Install_7_1_2 extends Install {
8
 
9
  /**
10
  * The default install version. Overridden by the installation packages.
11
  *
12
- * @since 7.1.2
13
  *
14
  * @access protected
15
  *
16
  * @var string $version The install version.
17
  */
18
- protected static $version = '7.1.2';
19
 
20
  /**
21
  * Run the install procedure.
22
  *
23
- * @since 7.1.2
24
  */
25
  public function install() {
26
 
4
  use SiteGround_Optimizer\Memcache\Memcache;
5
  use SiteGround_Optimizer\Options\Options;
6
 
7
+ class Install_7_1_5 extends Install {
8
 
9
  /**
10
  * The default install version. Overridden by the installation packages.
11
  *
12
+ * @since 7.1.5
13
  *
14
  * @access protected
15
  *
16
  * @var string $version The install version.
17
  */
18
+ protected static $version = '7.1.5';
19
 
20
  /**
21
  * Run the install procedure.
22
  *
23
+ * @since 7.1.5
24
  */
25
  public function install() {
26
 
core/Install_Service/Install_Service.php CHANGED
@@ -33,8 +33,7 @@ use SiteGround_Optimizer\Install_Service\Install_6_0_0;
33
  use SiteGround_Optimizer\Install_Service\Install_6_0_2;
34
  use SiteGround_Optimizer\Install_Service\Install_6_0_3;
35
  use SiteGround_Optimizer\Install_Service\Install_7_1_0;
36
- use SiteGround_Optimizer\Install_Service\Install_7_1_2;
37
- use SiteGround_Optimizer\Install_Service\Install_7_1_3;
38
  use SiteGround_Optimizer\Install_Service\Install_Cleanup;
39
  use SiteGround_Optimizer\Supercacher\Supercacher;
40
 
@@ -79,8 +78,7 @@ class Install_Service {
79
  new Install_6_0_2(),
80
  new Install_6_0_3(),
81
  new Install_7_1_0(),
82
- new Install_7_1_2(),
83
- new Install_7_1_3(),
84
  );
85
  }
86
 
33
  use SiteGround_Optimizer\Install_Service\Install_6_0_2;
34
  use SiteGround_Optimizer\Install_Service\Install_6_0_3;
35
  use SiteGround_Optimizer\Install_Service\Install_7_1_0;
36
+ use SiteGround_Optimizer\Install_Service\Install_7_1_5;
 
37
  use SiteGround_Optimizer\Install_Service\Install_Cleanup;
38
  use SiteGround_Optimizer\Supercacher\Supercacher;
39
 
78
  new Install_6_0_2(),
79
  new Install_6_0_3(),
80
  new Install_7_1_0(),
81
+ new Install_7_1_5(),
 
82
  );
83
  }
84
 
readme.txt CHANGED
@@ -428,6 +428,11 @@ Our plugin uses a cookie in order to function properly. It does not store person
428
 
429
  == Changelog ==
430
 
 
 
 
 
 
431
  = Version 7.1.4 =
432
  Release Date: June 21th, 2022
433
 
428
 
429
  == Changelog ==
430
 
431
+ = Version 7.1.5 =
432
+ Release Date: June 23th, 2022
433
+
434
+ * Improved Memcached service
435
+
436
  = Version 7.1.4 =
437
  Release Date: June 21th, 2022
438
 
sg-cachepress.php CHANGED
@@ -10,7 +10,7 @@
10
  * Plugin Name: SiteGround 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: 7.1.4
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
@@ -32,7 +32,7 @@ if ( ! defined( 'WPINC' ) ) {
32
 
33
  // Define version constant.
34
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
35
- define( __NAMESPACE__ . '\VERSION', '7.1.4' );
36
  }
37
 
38
  // Define slug constant.
10
  * Plugin Name: SiteGround 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: 7.1.5
14
  * Author: SiteGround
15
  * Author URI: https://www.siteground.com
16
  * Text Domain: sg-cachepress
32
 
33
  // Define version constant.
34
  if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
35
+ define( __NAMESPACE__ . '\VERSION', '7.1.5' );
36
  }
37
 
38
  // Define slug constant.
templates/memcached.tpl CHANGED
@@ -242,7 +242,8 @@ class WP_Object_Cache {
242
  $this->cache[$key] = $value = false;
243
  } else {
244
  $value = $mc->get( $key );
245
- if ( is_integer( $value ) && -1 == $value ){
 
246
  $value = false;
247
  $found = $mc->getResultCode() !== Memcached::RES_NOTFOUND;
248
  } else {
242
  $this->cache[$key] = $value = false;
243
  } else {
244
  $value = $mc->get( $key );
245
+ if ( ( empty( $value ) && ! strpos( $key, 'et_check_mod_pagespeed' ) ) || ( is_integer( $value ) && -1 == $value ) ){
246
+ $value = false;
247
  $value = false;
248
  $found = $mc->getResultCode() !== Memcached::RES_NOTFOUND;
249
  } else {
vendor/autoload.php CHANGED
@@ -2,6 +2,11 @@
2
 
3
  // autoload.php @generated by Composer
4
 
 
 
 
 
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit41f6b662d9353f9163f563d74935e475::getLoader();
2
 
3
  // autoload.php @generated by Composer
4
 
5
+ if (PHP_VERSION_ID < 50600) {
6
+ echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
7
+ exit(1);
8
+ }
9
+
10
  require_once __DIR__ . '/composer/autoload_real.php';
11
 
12
+ return ComposerAutoloaderInit6aabfa86f466ba6438be5ac1658af064::getLoader();
vendor/composer/InstalledVersions.php CHANGED
@@ -21,6 +21,8 @@ use Composer\Semver\VersionParser;
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
 
 
24
  */
25
  class InstalledVersions
26
  {
21
  * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
22
  *
23
  * To require its presence, you can require `composer-runtime-api ^2.0`
24
+ *
25
+ * @final
26
  */
27
  class InstalledVersions
28
  {
vendor/composer/autoload_classmap.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_classmap.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_files.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_files.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_namespaces.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_namespaces.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_psr4.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
- $vendorDir = dirname(dirname(__FILE__));
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
2
 
3
  // autoload_psr4.php @generated by Composer
4
 
5
+ $vendorDir = dirname(__DIR__);
6
  $baseDir = dirname($vendorDir);
7
 
8
  return array(
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit41f6b662d9353f9163f563d74935e475
6
  {
7
  private static $loader;
8
 
@@ -24,41 +24,18 @@ class ComposerAutoloaderInit41f6b662d9353f9163f563d74935e475
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInit41f6b662d9353f9163f563d74935e475', 'loadClassLoader'), true, true);
28
- self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInit41f6b662d9353f9163f563d74935e475', 'loadClassLoader'));
30
 
31
- $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
- if ($useStaticLoader) {
33
- require __DIR__ . '/autoload_static.php';
34
-
35
- call_user_func(\Composer\Autoload\ComposerStaticInit41f6b662d9353f9163f563d74935e475::getInitializer($loader));
36
- } else {
37
- $map = require __DIR__ . '/autoload_namespaces.php';
38
- foreach ($map as $namespace => $path) {
39
- $loader->set($namespace, $path);
40
- }
41
-
42
- $map = require __DIR__ . '/autoload_psr4.php';
43
- foreach ($map as $namespace => $path) {
44
- $loader->setPsr4($namespace, $path);
45
- }
46
-
47
- $classMap = require __DIR__ . '/autoload_classmap.php';
48
- if ($classMap) {
49
- $loader->addClassMap($classMap);
50
- }
51
- }
52
 
53
  $loader->register(true);
54
 
55
- if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInit41f6b662d9353f9163f563d74935e475::$files;
57
- } else {
58
- $includeFiles = require __DIR__ . '/autoload_files.php';
59
- }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequire41f6b662d9353f9163f563d74935e475($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
@@ -70,7 +47,7 @@ class ComposerAutoloaderInit41f6b662d9353f9163f563d74935e475
70
  * @param string $file
71
  * @return void
72
  */
73
- function composerRequire41f6b662d9353f9163f563d74935e475($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit6aabfa86f466ba6438be5ac1658af064
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit6aabfa86f466ba6438be5ac1658af064', 'loadClassLoader'), true, true);
28
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit6aabfa86f466ba6438be5ac1658af064', 'loadClassLoader'));
30
 
31
+ require __DIR__ . '/autoload_static.php';
32
+ call_user_func(\Composer\Autoload\ComposerStaticInit6aabfa86f466ba6438be5ac1658af064::getInitializer($loader));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  $loader->register(true);
35
 
36
+ $includeFiles = \Composer\Autoload\ComposerStaticInit6aabfa86f466ba6438be5ac1658af064::$files;
 
 
 
 
37
  foreach ($includeFiles as $fileIdentifier => $file) {
38
+ composerRequire6aabfa86f466ba6438be5ac1658af064($fileIdentifier, $file);
39
  }
40
 
41
  return $loader;
47
  * @param string $file
48
  * @return void
49
  */
50
+ function composerRequire6aabfa86f466ba6438be5ac1658af064($fileIdentifier, $file)
51
  {
52
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
53
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit41f6b662d9353f9163f563d74935e475
8
  {
9
  public static $files = array (
10
  '7135897415a2b76322abd22e8fdd66f8' => __DIR__ . '/../..' . '/helpers/helpers.php',
@@ -96,10 +96,10 @@ class ComposerStaticInit41f6b662d9353f9163f563d74935e475
96
  public static function getInitializer(ClassLoader $loader)
97
  {
98
  return \Closure::bind(function () use ($loader) {
99
- $loader->prefixLengthsPsr4 = ComposerStaticInit41f6b662d9353f9163f563d74935e475::$prefixLengthsPsr4;
100
- $loader->prefixDirsPsr4 = ComposerStaticInit41f6b662d9353f9163f563d74935e475::$prefixDirsPsr4;
101
- $loader->prefixesPsr0 = ComposerStaticInit41f6b662d9353f9163f563d74935e475::$prefixesPsr0;
102
- $loader->classMap = ComposerStaticInit41f6b662d9353f9163f563d74935e475::$classMap;
103
 
104
  }, null, ClassLoader::class);
105
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit6aabfa86f466ba6438be5ac1658af064
8
  {
9
  public static $files = array (
10
  '7135897415a2b76322abd22e8fdd66f8' => __DIR__ . '/../..' . '/helpers/helpers.php',
96
  public static function getInitializer(ClassLoader $loader)
97
  {
98
  return \Closure::bind(function () use ($loader) {
99
+ $loader->prefixLengthsPsr4 = ComposerStaticInit6aabfa86f466ba6438be5ac1658af064::$prefixLengthsPsr4;
100
+ $loader->prefixDirsPsr4 = ComposerStaticInit6aabfa86f466ba6438be5ac1658af064::$prefixDirsPsr4;
101
+ $loader->prefixesPsr0 = ComposerStaticInit6aabfa86f466ba6438be5ac1658af064::$prefixesPsr0;
102
+ $loader->classMap = ComposerStaticInit6aabfa86f466ba6438be5ac1658af064::$classMap;
103
 
104
  }, null, ClassLoader::class);
105
  }
vendor/composer/installed.php CHANGED
@@ -5,7 +5,7 @@
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
- 'reference' => '2a0a78bde552761545c9db07e9f84f5693e5966c',
9
  'name' => 'siteground/sg-cachepress',
10
  'dev' => true,
11
  ),
@@ -72,7 +72,7 @@
72
  'type' => 'wordpress-plugin',
73
  'install_path' => __DIR__ . '/../../',
74
  'aliases' => array(),
75
- 'reference' => '2a0a78bde552761545c9db07e9f84f5693e5966c',
76
  'dev_requirement' => false,
77
  ),
78
  'siteground/siteground-data' => array(
5
  'type' => 'wordpress-plugin',
6
  'install_path' => __DIR__ . '/../../',
7
  'aliases' => array(),
8
+ 'reference' => '728d5b4a7d269446da01635cea74460d0bf2aeca',
9
  'name' => 'siteground/sg-cachepress',
10
  'dev' => true,
11
  ),
72
  'type' => 'wordpress-plugin',
73
  'install_path' => __DIR__ . '/../../',
74
  'aliases' => array(),
75
+ 'reference' => '728d5b4a7d269446da01635cea74460d0bf2aeca',
76
  'dev_requirement' => false,
77
  ),
78
  'siteground/siteground-data' => array(