MainWP > update order

Hi! We’re using MainWP to update around manage and update 1600 sites.

We run the cron endpoint for updating sites (/wp-content/plugins/mainwp/cron/updatescheck.php) only during a few hours at night, but within those hours, every minute. So e.g. with cronschedule:

* 1,2,3,4 * * *

What is the order in which updates are processed / performed? For example:

  • the website that was checked least recently (based on a timestamp in the mainwp DB)
  • alphabetically
  • randomly
  • in another way

Hey @Stuurlui

MainWP always starts with the sites whose last automatic update check began the longest time ago (including any that have never been checked).

Each minute during your cron window it pulls up to four of those “oldest” sites, kicks off their update checks, then records the current time so they fall to the back of the line. The next minute it again takes the sites now longest-waiting.

So the order is basically “oldest last-update-check first.”

Thanks for clarifying

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.