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

WP Super Cache: WP Cron requests have a short circuit that stops the cache being cleared #38257

Closed
donnchawp opened this issue Jul 9, 2024 · 0 comments · Fixed by #38263
Closed
Assignees
Labels
[Plugin] Super Cache A fast caching plugin for WordPress. [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended

Comments

@donnchawp
Copy link
Contributor

The function wpsc_is_backend() returns true if the current request is "a backend request" that shouldn't be cached. That also includes requests to wp-cron.php/DOING_CRON requests.
Unfortunately, that function is called in the wp_cache_postload() function to stop the request being cached. I'll remove it from there as it's also checked in wp_cache_phase2(), but after the actions are hooked.

@donnchawp donnchawp self-assigned this Jul 9, 2024
@donnchawp donnchawp added [Type] Bug When a feature is broken and / or not performing as intended [Pri] Normal [Plugin] Super Cache A fast caching plugin for WordPress. labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Super Cache A fast caching plugin for WordPress. [Pri] Normal [Type] Bug When a feature is broken and / or not performing as intended
1 participant