• Hi,
    I’ve been having problems with cron after installing Wordfence on a multisite server. It basically added about 200 cron jobs to wordpress, which meant it was scanning all the time. I found a cron controller plugin to delete all the offending jobs, and its looking a lot better now.

    While I was investigating this I found all the cron jobs are stored in
    wp_options. (select * from wp_options where option_name=”cron”)

    However they were also stored in wp_1_options, wp_2_options, wp_3_options etc. My question is this: should the cron stuff be in the sub-sites options table at all? It seems that its enough to have them in wp_options. If there is a daily task in all the wp_x_options tables, then the task will surely run multiple times each day ??

    I created these sites by cloning from another installation, so I’m wondering if the cron entries were mistakenly cloned across, and I can in fact remove them from the sub-sites’ wp_x_options table.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    My question is this: should the cron stuff be in the sub-sites options table at all?

    Yes.

    The reason is that cron is PER site, so running a job on site #1 won’t run on #2 and s on.

    Should WORDFENCE’s be like that? You’d have to ask them.

    Thread Starter peripatetic

    (@peripatetic)

    Thanks Mika

    OK, I understand that each site might have different cron tasks, but the ones I can see in my wp_x_options tables are: check to see if wordpress is the latest version, check for plugin updates etc. These are set to go off once every 12 hours. But if I have 4 sites (and more to come), then it will wait for 12 hours and then update 4 times. My feeling is that this is wasteful and could cause problems. So I’m edging towards removing all the common tasks (wordfence, updates, checks) into wp_options and removing them from wp_x_options. But I won’t remove the “cron” entry from wp_x_options table in case its needed at some point.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    It won’t update 4 times 🙂 It’ll CHECK 4 times, and only one will run.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Multisite and cron’ is closed to new replies.