PluginProbe
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score / 3.6.3
Powered Cache – Caching and Optimization for WordPress – Easily Improve PageSpeed & Web Vitals Score v3.6.3
trunk 1.0 1.0.1 1.1 1.1.1 1.1.2 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 2.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1 2.1.1 2.1.2 2.2 2.2.1 All 69 releases
← All changes | includes/classes/Config.php +2 -2 trunk3.6.3 View file →
@@ -112,9 +112,9 @@
112 112 public function object_cache_file_content( $backend ) {
113 113 $string = '<?php ' . "\n";
114 114 $string .= "defined( 'ABSPATH' ) || exit;" . PHP_EOL;
115 115 $string .= "define( 'POWERED_OBJECT_CACHE', true );" . PHP_EOL;
116 - $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) && defined( 'DB_NAME') ) {" . PHP_EOL;
116 + $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) ) {" . PHP_EOL;
117 117 $string .= "\t" . "define( 'WP_CACHE_KEY_SALT', DB_NAME );" . PHP_EOL;
118 118 $string .= '}' . PHP_EOL;
119 119
120 120 $object_caches = get_object_cache_dropins();
@@ -124,9 +124,9 @@
124 124 $string .= '} elseif ( @file_exists( \'' . $object_caches[ $backend ] . '\' ) ) {' . PHP_EOL;
125 125 $string .= "\t" . 'include( \'' . $object_caches[ $backend ] . '\' );' . PHP_EOL;
126 126 $string .= '} else {' . PHP_EOL;
127 127 $string .= "\t" . 'define( \'POWERED_OBJECT_CACHE_HAS_PROBLEM\', true );' . PHP_EOL;
128 - $string .= '}' . PHP_EOL;
128 + $string .= '}';
129 129
130 130 /**
131 131 * Filters object-cache.php file contents.
132 132 *