Background Processing

Andy Fragen edited this page Aug 6, 2018 · 16 revisions

GitHub Updater uses background processing of API calls as of version 7.0.0. It does this by passing off the API calls into WP-Cron for processing. This means that either WP-Cron must be active or you must have cPanel set up to run an actual cron job that calls wp-cron.php or the wp-cli equivalent of wp cron event run --due-now.

Background processing may cause the GitHub Updater Settings subtabs to show your repositories as broken with an red warning icon red warning icon and will display fields or checkboxes to add repository specific tokens or Bitbucket private checkboxes. These will display until the background update process is complete and can be ignored. If there is really an issue the warning icon will persist. A tooltip on the icon will explain it's meaning. Simply wait for a minute or so and refresh the page.

Background processing may also cause the Settings subtabs to fail to display until some of the repositories are processed. This is only a cosmetic issue.

background processing in process

When background processing is complete, these cosmetic issues will disappear.

background processing complete

Force Background Processing

If you want to force background processing to initiate you can use either of the following methods.

  • From wp-cli run the command wp cron event run --due-now
  • From the browser run http://mysite.com/wp-cron.php

Revert To Foreground Processing

If you want to force foreground processing, the original method, you can add the following filter hook to your functions.php file.

add_filter( 'github_updater_disable_wpcron', '__return_true' );
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.