Add Limit to CRON Cleanup
-
We’ve turned off the “Enable Cache Regeneration” because we have more than 600K entries an have noticed significant resource usage (even in a highly scalable AWS instance).
We are now noticing the scheduled cleanup event
wp_rest_cache_cleanup_deleted_caches
is timing out our CRON pod(s). I would highly suggest adding a limit to the wpdb query in thecleanup_deleted_caches()
function. Maybe something likeLIMIT 1000
.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Add Limit to CRON Cleanup’ is closed to new replies.