• Hi, I’m working on reducing CPU load on a shared server after receiving a warning from the hosting service. I’d like to move off of WP managing the cron jobs per recommendations. Our install is a multisite with subfolders for each site, and using WordPress MU Domain Mapping plugin to manage sites.

    So if it’s a subfolder multisite setup, do I just need one cron job to manage the whole site? Or do I do it on a subfolder-by-subfolder basis for each blog? Any recommendations?

    Thanks for any assistance (and patience if this is an obvious question) ??

    • This topic was modified 7 years, 9 months ago by dub_xion.
    • This topic was modified 7 years, 9 months ago by dub_xion.
Viewing 2 replies - 1 through 2 (of 2 total)
  • This seems to be a little complicated issue. I wouldn’t do this. There are better ways to reduce the load. The best one is to install a caching plugin. Also removing plugins.

    But if you want to do this, looks to me you need to run a cron somehow for each site. To further research this topic, start reading the results here: https://www.google.com/search?q=real+cron+wordpress+multisite

    Moderator Bet Hannon

    (@bethannon1)

    @dub_xion, caching is good, but it too can be difficult to implement on multisite.

    As you may know, wp-cron is what triggers anything that has scheduling involved: publishing scheduled posts, running scheduled backups, running scheduled malware scans.

    It is possible to disable wp-cron and run these as a “real” server cron (I use every 15 minutes), but in a mapped domain situation, I think you would have to set up a separate server cron for every mapped domain.

    Just FYI: in terms of lowering server CPU usage, I recently found that our security plugin (a very popular one) was the culprit. There are options settings for it’s scheduled “scan” feature that lower the intensive server use, and there is a “Use low resource scanning” checkbox. This helped our CPU usage a lot. Also, there are use “low recources mode” for one of the backup plugins we often use.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Managing cron jobs in multisite w/ subfolders’ is closed to new replies.