Articles in this section

How does Smart Update work when Autoupdate is enabled for WordPress in the WP Toolkit?

kb: how-to Plesk for Linux ext: wptk

Applicable to:

  • Plesk for Linux

Question

  • How does Smart Update work when Autoupdate is enabled for WordPress in WP Toolkit?
  • Will my WordPress website still be updated automatically if I use Smart Updates?
  • What happens if Smart Update finds a problem with an update?

Answer

Autoupdate and Smart Update are two separate features that work as a team:

  • Autoupdate decides what gets updated automatically (WordPress itself, plugins, and themes). It must stay enabled. Without it, the updates are not applied to your website.
  • Smart Update acts as a safety check. Before an update reaches your live website, it tests the update on a private copy of the site first.

If the test goes well, your live website is updated. If the test finds a problem, your live website is left untouched and you receive an email.

Example setup

The steps below describe what happens when Smart Updates is switched on for a website and the Autoupdate settings in WP Toolkit look like this:

  • Update WordPress automatically: Yes
  • Update plugins automatically: Forced
  • Update themes automatically: Forced

What happens step by step

  1. Plesk checks for updates on a schedule. A scheduled task (a job that runs automatically at set times) looks for new updates for your WordPress websites. This is the same schedule WP Toolkit uses for regular WordPress updates. (Technical detail: the task runs the WP Toolkit script instances-auto-update.php, which starts the Smart Update process.)
  2. Smart Update makes a copy of your website. If an update is available, WP Toolkit creates a temporary copy (a "clone") of your site. Your real website is not touched and visitors notice nothing.
  3. The update is installed on the copy. Only the copy is updated.
  4. The copy is checked. WP Toolkit analyzes the updated copy to see whether the update changed or broke anything.
  5. Your live website is updated, or left alone, depending on the result. (Technical detail: this decision controls whether the WordPress cron task wp_version_check is run. That task is what actually applies the updates to your live website.)
    • No issues found: The wp_version_check task runs, and WordPress updates your live website automatically.
    • At least one issue found: The wp_version_check task does not run, so the update is not applied to your live website. Instead, you receive an email with the test result.

What to do if you receive an email about a problem

The email contains a link to a report. The report shows "before" and "after" screenshots of your website, so you can see what the update would have changed. Based on that comparison, you can decide how to proceed, for example, whether to go ahead with the update anyway or to wait.

How to find out when the updates run

  1. Log in to Plesk.
  2. Go to Tools & Settings > Scheduled Tasks (Cron jobs).
  3. Look for the task /opt/psa/admin/plib/modules/wp-toolkit/scripts/instances-auto-update.php. The schedule listed there shows when the update checks run.

More information

For all available update settings, see Updating WordPress Installations | Plesk Obsidian documentation.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.