• Resolved bobsled

    (@bobsled)


    I’ve been trying to solve a problem of very frequent server requests, and have traced it to swcfpc_cache_purge_cron and action_scheduler_run_queue that are creating very high wp-cron.php activity, because they are scheduled to run every minute.

    Is it possible to change the internal frequency (interval) of the purge queue job from ‘Every minute’ to a less frequent time, such as every 5 minutes’ (300 seconds)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Poonam Namdev

    (@poonam9)

    Hi @bobsled,

    You can control the interval by adding a PHP constant to your wp-config.php file.

    Please add the following line right above the “/* That’s all, stop editing! Happy blogging. */” section:

    define( 'SWCFPC_PURGE_CACHE_CRON_INTERVAL', 300 );

    Setting the value to 300 will change the purge queue frequency from every minute to every 5 minutes (300 seconds), which should dramatically reduce the number of requests hitting wp-cron.php.

    Let me know if that solves the issue for you!

    Thread Starter bobsled

    (@bobsled)

    Great, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Very high wp-cron.php activity’ is closed to new replies.