• Resolved Austin

    (@austyfrosty)


    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 the cleanup_deleted_caches() function. Maybe something like LIMIT 1000.

    • This topic was modified 4 years, 5 months ago by Austin.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Richard Korthuis

    (@rockfire)

    Hello @austyfrosty

    We have changed the cron and indeed added a limit (with a default of 1000) which can be changed using the wp_rest_cache/max_cleanup_caches.

    This change will be in our upcoming release, it first needs to be reviewed internally, but I expect we will be able to release it soon.

    Plugin Author Richard Korthuis

    (@rockfire)

    Hi @austyfrosty

    We just released a new version of our plugin which includes the mentioned fix.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Limit to CRON Cleanup’ is closed to new replies.