• Resolved Eko Solution

    (@ekosolution)


    Hi,

    Currently if not mistaken, the wp-cron will be called on every page hit. This is not necessary as it will slow down the load.

    I want to suggest to make an option where admin can set the interval when the wp-cron to be called.

    Currently I have to rely adding 1 line of code
    define(‘DISABLE_WP_CRON’, true);
    into the wp-config to disable it and write a cron job in cpanel to call it manually at speficic time.

    This manual job is not efficient as core wp update will overwrite it and need to rewrite again and again.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • hello welcome, the update of the core does not alter your wp-config.php file in any way, at the moment you can disable all the hits and enable cron from the outside.

    Moderator Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    No, wp-cron is only called when there are pending jobs to be performed, not on every page hit. Disabling it manually and then adding a real cron job to call it is less efficient.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make Option for WP CRON to be called at specified interval’ is closed to new replies.