Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache purging issue #101

Open
AussieScorpio opened this issue Sep 17, 2019 · 1 comment
Open

Cache purging issue #101

AussieScorpio opened this issue Sep 17, 2019 · 1 comment

Comments

@AussieScorpio
Copy link

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

@ram108
Copy link

ram108 commented Oct 2, 2019

See the issue: #97

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants