• Resolved rapidasia

    (@rapidasia)


    Help please.

    define(‘DISABLE_WP_CRON’, true);
    WP multisite install

    in Admin dashboard… wp-cron.php starts running over and over and over and over again

    (seen in Inspect > Network )

    any clues as to why?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    This is total conjecture, but I think there’s a fair chance of it being correct.

    The ‘DISABLE_WP_CRON’ constant may prevent WP Cron from running, but it doesn’t stop admin code from scheduling cron events and trying to start them. They just don’t complete. When they don’t complete, WP retries again and again.

    You probably also need to disable updates and clear any existing scheduled events.

    Thread Starter rapidasia

    (@rapidasia)

    @bcworkz thanks – I do think you’re right about the admin (or something) trying to start the cron

    I ended up adding a snippet to functions.php that made everything work a lot better, reducing queries substantially

    // Disable automatic updates for All plugins:
    add_filter( 'auto_update_plugin', '__return_false' );

    basically stopping most of the plugins from running checks on page load. hasn’t interfered with updating plugins so far.

    • This reply was modified 3 years ago by bcworkz. Reason: code format fixed
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP-cron is disabled, still runs in Admin’ is closed to new replies.