You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sleep( 1 ); // allow existing processes to write to the supercachedir and then delete it
2155
-
if (function_exists ('prune_super_cache') && is_dir( $supercachedir ) ) {
2174
+
if (function_exists( 'prune_super_cache') && is_dir( $supercachedir ) ) {
2156
2175
prune_super_cache( $cache_path, true );
2157
2176
}
2177
+
2178
+
if ( $GLOBALS['wp_cache_mod_rewrite'] === 1 ) {
2179
+
remove_mod_rewrite_rules();
2180
+
}
2158
2181
}
2159
2182
2160
2183
functionwp_cache_is_enabled() {
2161
2184
global$wp_cache_config_file;
2162
2185
2163
-
if(get_option('gzipcompression')) {
2164
-
echo"<strong>" . __( 'Warning', 'wp-super-cache' ) . "</strong>: " . __( "GZIP compression is enabled in WordPress, wp-cache will be bypassed until you disable gzip compression.", 'wp-super-cache' );
2186
+
if ( get_option('gzipcompression' ) ) {
2187
+
echo'<strong>' . __( 'Warning', 'wp-super-cache' ) . '</strong>: ' . __( 'GZIP compression is enabled in WordPress, wp-cache will be bypassed until you disable gzip compression.', 'wp-super-cache' );
2165
2188
returnfalse;
2166
2189
}
2167
-
$lines = file($wp_cache_config_file);
2168
-
foreach($linesas$line) {
2169
-
if (preg_match('/^ *\$cache_enabled *= *true *;/', $line))
2190
+
2191
+
$lines = file( $wp_cache_config_file );
2192
+
foreach ( $linesas$line ) {
2193
+
if ( preg_match( '/^\s*\$cache_enabled\s*=\s*true\s*;/', $line ) ) {
0 commit comments