Digital Sovereignty for everyone

Background Jobs

The plugin keeps each site’s user records up to date with a user sync: every user with a role on the site gets a last activity date, a BuddyPress blog record and a profile name. Since 1.1.3 the sync is scheduled through LH_Buddypress_Multi_Network_Queue (includes/class-lh-buddypress-multi-network-queue.php). It runs on Action Scheduler when the current site has it, in the lh-buddypress-multi-network group (listed under Tools → Scheduled Actions), and on WP-Cron otherwise. The same hooks are used on both runners, and on Action Scheduler any WP-Cron copy of a job is cleared so it runs once.

  • lh_bmn_wakeup – the daily sync, per site. Created on init (throttled hourly by the lh_bmn_schedule_checked transient) on each site where BuddyPress loads, with up to 1000 seconds of jitter, so sites added later get it too.
  • lh_bmn_single – a one-off sync 30 seconds after a user registers, is added to the site or updates a profile. While one is waiting no other is queued, so a burst of changes runs the sync once.

A user added to a site is handled while WordPress is switched to that site, so that sync goes to the site’s WP-Cron: Action Scheduler is only safe for the site the request is running on. On deactivation the whole Action Scheduler group is cancelled on the current site and every WP-Cron instance of the plugin’s hooks is removed, including the retired lh_bmn_process; on network deactivation WP-Cron is also cleared on every other site.

Filters

  • lh_bmn_wakeup_hook, lh_bmn_single_hook – the job hook names.
  • lh_bmn_uses_action_scheduler – return false to keep every job on WP-Cron.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.