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
I've been having an issue with the cache purging unexpectedly. I've traced the problem to the schedule_events() function where the cron job is created.
I have page_cache_length set to 0 through the admin panel which should disable the creation of the cron job for purging.
When the conditional is hit to check page_cache_length, it's returning false;
if ( isset( $config['page_cache_length'] ) && 0 === $config['page_cache_length'] )
Changing evaluation to == like below works;
if ( isset( $config['page_cache_length'] ) && 0 == $config['page_cache_length'] )
Regards
The text was updated successfully, but these errors were encountered:
I've been having an issue with the cache purging unexpectedly. I've traced the problem to the schedule_events() function where the cron job is created.
I have page_cache_length set to 0 through the admin panel which should disable the creation of the cron job for purging.
When the conditional is hit to check page_cache_length, it's returning false;
if ( isset( $config['page_cache_length'] ) && 0 === $config['page_cache_length'] )
Changing evaluation to == like below works;
if ( isset( $config['page_cache_length'] ) && 0 == $config['page_cache_length'] )
Regards
The text was updated successfully, but these errors were encountered: