Skip to content

Commit

Permalink
Check if $super_cache_enabled is true this way (#677)
Browse files Browse the repository at this point in the history
In 1.6.5 $super_cache_enabled was saved as 1 rather than true. This
check failed so I'm changing it back to "==" and also fixed saving of
$super_cache_enabled in #676 because I don't want users to toggle
caching just to use preload again.
  • Loading branch information
donnchawp authored May 29, 2019
1 parent e447c29 commit d3858bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ function toggleLayer( whichLayer ) {
}

if ( 'preload' === $curr_tab ) {
if ( true === $super_cache_enabled && ! defined( 'DISABLESUPERCACHEPRELOADING' ) ) {
if ( true == $super_cache_enabled && ! defined( 'DISABLESUPERCACHEPRELOADING' ) ) {
global $wp_cache_preload_interval, $wp_cache_preload_on, $wp_cache_preload_taxonomies, $wp_cache_preload_email_me, $wp_cache_preload_email_volume, $wp_cache_preload_posts, $wpdb;
$count = wpsc_post_count();
if ( $count > 1000 ) {
Expand Down

0 comments on commit d3858bc

Please sign in to comment.