pastorjcox
Member
Posted 4 months ago #
I am trying use WP Super Cache plugin but keep getting this error message:
"Cache expiry cron job failed. Job will run again in 10 seconds."
I am seeing this in multiple WordPress installations on multiple servers. Anyone know what could be causing this message and how to resolve it?
http://wordpress.org/extend/plugins/wp-super-cache/
Are you using coarse file locking? That's usually the reason this fails.
pastorjcox
Member
Posted 4 months ago #
No, I'm not. The box is unchecked.
Best thing to do is open wp-cache-phase2.php and find the warning, "Cache expiry cron job failed". There's a line above it:
if( false == ( $num = wp_cache_phase2_clean_expired( $file_prefix ) ) ) {
Change that "==" to "===". Does that help?
If that doesn't change anything look at the function wp_cache_phase2_clean_expired and check the return values it returns.