@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-buddypress-multi-network/>
  a sioc:Post ;
  dc:title "Changelog" ;
  dcterms:identifier 148133 ;
  dc:modified "2026-09-22T00:46:28Z"^^xsd:dateTime ;
  dc:created "2026-09-22T00:46:28Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-buddypress-multi-network/changelog/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-buddypress-multi-network/\">LH Buddypress Multi Network</a></li></ul><ul class=\"lh_portfolio-changelog\"><li><strong>1.1.11:</strong> Adds the standard plugin_version() identity method, which reads the Version header from the main plugin file once per request and caches it.</li><li><strong>1.1.10:</strong> write_log() now follows the canonical LH convention: takes an optional $level (default info) and writes &quot;Level:  [lh_bmn] message&quot; lines that LH Debug Log Viewer parses, colour-codes and filters by level. Arrays and objects are logged as single-line JSON instead of multi-line print_r() output, so the full value survives line-based parsing. The invalid primary blog ID message is now logged as a warning.</li><li><strong>1.1.9:</strong> Stop user sync runs re-walking unclaimed users, as 1.1.7 meant to. bbPress gives every user the bbp_participant role as well, so unclaimed users still matched the members phase&#039;s role list, and prepare_user() looked only at a user&#039;s first role. On Princes Park Touch every run walked about 5,000 unclaimed users in 100 batch jobs, up to 1,200 jobs an hour. The members phase now leaves out anyone holding a role from return_unrecorded_roles() (role__not_in), and prepare_user() skips a user holding any of those roles, whatever order their roles are stored in.</li><li><strong>1.1.8:</strong> Log a one-line summary when a user sync run ends. The 1.1.7 change did not reduce the work: sync runs on Princes Park Touch still take 100 batch jobs each, so leaving unclaimed users out of the members phase was not the cause. Each run now counts its batches and the users handled in each phase, and when it finishes or is replaced by a newer run it logs those counts with how long it took, its last phase and cursor, and the activity, last-activity and blogs tables it read, so the cause can be found from the next run.</li><li><strong>1.1.7:</strong> Stop user sync runs re-walking users that are never recorded. The members phase queried every role, including unclaimed, but unclaimed users are never added to the blogs table, so they never dropped out and every run walked them all again (on Princes Park Touch, 5,258 users, about 100 batch jobs per run and up to 1,200 an hour). Roles that are never recorded now come from a new filterable list, return_unrecorded_roles() (filter lh_bmn_return_unrecorded_roles, default unclaimed), which both the members-phase query and prepare_user() use. Members of the site in those roles get their name in the activity phase instead, once, when they first get a last_activity row.</li><li><strong>1.1.6:</strong> Fix MCP calls made with site_id reading and writing the calling site&#039;s xProfile data instead of the target site&#039;s. xProfile is the only BuddyPress component kept per site on LocalHero, and BuddyPress binds its xProfile table names (and the xProfile meta tables on $wpdb) once at load, so switch_to_blog() left them pointing at the calling site; its xProfile cache groups are also global, so cached groups and fields from one site were served for another. New rebind_xprofile_tables() re-points the xProfile tables to the current site and flushes the xProfile cache groups; it runs on lh_mcp_adapter_extensions_site_scope_reset_caches, which fires after every site_id switch and restore. Other code that switches sites is unchanged.</li><li><strong>1.1.5:</strong> Resume a stalled user sync within about 20 minutes instead of up to 75. The stall check (no progress for stall_after(), 15 min by default) only ran inside the hourly-throttled daily schedule check, so a batch whose request was killed left the run stopped until the next hourly check or until Action Scheduler marked the action failed after an hour. The stall check now has its own 5-minute throttle and runs on init before the hourly check. Each resume is written to the debug log with the run&#039;s phase, cursor and seconds without progress, to help find why batches hang.</li><li><strong>1.1.4:</strong> Fixed the daily and one-off user sync timing out on large sites. The sync now runs as a chain of short background batches (50 users or 20 seconds each, filterable via lh_bmn_batch_size and lh_bmn_batch_time_limit), each queuing the next, instead of doing every user in one request. Progress is saved per chunk and every step is safe to repeat, so a batch killed part-way resumes where it stopped; the hourly schedule check re-queues a run that has stalled for 15 minutes. Starting a new sync while one is running restarts it cleanly. Deactivation also clears any in-progress run.</li><li><strong>1.1.3:</strong> The user sync now runs on Action Scheduler where a site has it, falling back to WP-Cron elsewhere. The daily sync and the one-off sync queued when a user registers, joins the site or updates a profile are scheduled through a new queue class, so on sites with Action Scheduler each run is claimed before it starts (no double runs when two cron runners overlap). The one-off sync is debounced: while one is waiting, further changes do not queue another. Syncs queued while switched to another site, as when a user is added to a site, go to that site&#039;s WP-Cron. The daily sync is now created on init on each site where BuddyPress loads, including sites added later, instead of at activation, and the retired lh_bmn_process hook is no longer run. Deactivation removes every queued sync on both runners. The daily and one-off hook names are unchanged and are now filterable (lh_bmn_wakeup_hook, lh_bmn_single_hook), as is the use of Action Scheduler (lh_bmn_uses_action_scheduler).</li><li><strong>1.1.2:</strong> Fixes an undefined variable warning in the daily user sync. When a member has no xProfile name and no display name, first or last name or email to build one from, the sync now leaves their name alone instead of trying to save an empty one.</li><li><strong>1.1.1:</strong> Fixed newly added users missing from a site&#039;s BuddyPress member directory. The list of a site&#039;s users that the directory is limited to was cached with no expiry and never cleared, so on a site with a persistent object cache (such as LiteSpeed&#039;s) anyone added to the site after the list was first cached did not appear in the directory, the member count or the sitewide activity feed until the object cache was flushed. The list is now cleared whenever a user registers, is added to or removed from a site, or has their role on it changed, and expires after an hour as a backstop (filterable through lh_bmn_return_users_cache_expiry). The cache key has changed, so lists cached by earlier versions are ignored from this release on. Also fixed looking up another site&#039;s users, which switched to an undefined site ID and restored the site even when it had not switched, and the member count returning nothing instead of false when a site has no users. Changelog history for 1.00 and 1.01 was backfilled from the old readme before this release.</li><li><strong>1.01:</strong> Minor privacy improvement.</li><li><strong>1.00:</strong> Initial release.</li></ul>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Buddypress Multi Network1.1.11: Adds the standard plugin_version() identity method, which reads the Version header from the main plugin file once per request and caches it.1.1.10: write_log() now follows the canonical LH convention: takes an optional $level (default info) and writes &quot;Level:  [lh_bmn] message&quot; lines that LH Debug Log Viewer parses, colour-codes and filters by level. Arrays and objects are logged as single-line JSON instead of multi-line print_r() output, so the full value survives line-based parsing. The invalid primary blog ID message is now logged as a warning.1.1.9: Stop user sync runs re-walking unclaimed users, as 1.1.7 meant to. bbPress gives every user the bbp_participant role as well, so unclaimed users still matched the members phase&#039;s role list, and prepare_user() looked only at a user&#039;s first role. On Princes Park Touch every run walked about 5,000 unclaimed users in 100 batch jobs, up to 1,200 jobs an hour. The members phase now leaves out anyone holding a role from return_unrecorded_roles() (role__not_in), and prepare_user() skips a user holding any of those roles, whatever order their roles are stored in.1.1.8: Log a one-line summary when a user sync run ends. The 1.1.7 change did not reduce the work: sync runs on Princes Park Touch still take 100 batch jobs each, so leaving unclaimed users out of the members phase was not the cause. Each run now counts its batches and the users handled in each phase, and when it finishes or is replaced by a newer run it logs those counts with how long it took, its last phase and cursor, and the activity, last-activity and blogs tables it read, so the cause can be found from the next run.1.1.7: Stop user sync runs re-walking users that are never recorded. The members phase queried every role, including unclaimed, but unclaimed users are never added to the blogs table, so they never dropped out and every run walked them all again (on Princes Park Touch, 5,258 users, about 100 batch jobs per run and up to 1,200 an hour). Roles that are never recorded now come from a new filterable list, return_unrecorded_roles() (filter lh_bmn_return_unrecorded_roles, default unclaimed), which both the members-phase query and prepare_user() use. Members of the site in those roles get their name in the activity phase instead, once, when they first get a last_activity row.1.1.6: Fix MCP calls made with site_id reading and writing the calling site&#039;s xProfile data instead of the target site&#039;s. xProfile is the only BuddyPress component kept per site on LocalHero, and BuddyPress binds its xProfile table names (and the xProfile meta tables on $wpdb) once at load, so switch_to_blog() left them pointing at the calling site; its xProfile cache groups are also global, so cached groups and fields from one site were served for another. New rebind_xprofile_tables() re-points the xProfile tables to the current site and flushes the xProfile cache groups; it runs on lh_mcp_adapter_extensions_site_scope_reset_caches, which fires after every site_id switch and restore. Other code that switches sites is unchanged.1.1.5: Resume a stalled user sync within about 20 minutes instead of up to 75. The stall check (no progress for stall_after(), 15 min by default) only ran inside the hourly-throttled daily schedule check, so a batch whose request was killed left the run stopped until the next hourly check or until Action Scheduler marked the action failed after an hour. The stall check now has its own 5-minute throttle and runs on init before the hourly check. Each resume is written to the debug log with the run&#039;s phase, cursor and seconds without progress, to help find why batches hang.1.1.4: Fixed the daily and one-off user sync timing out on large sites. The sync now runs as a chain of short background batches (50 users or 20 seconds each, filterable via lh_bmn_batch_size and lh_bmn_batch_time_limit), each queuing the next, instead of doing every user in one request. Progress is saved per chunk and every step is safe to repeat, so a batch killed part-way resumes where it stopped; the hourly schedule check re-queues a run that has stalled for 15 minutes. Starting a new sync while one is running restarts it cleanly. Deactivation also clears any in-progress run.1.1.3: The user sync now runs on Action Scheduler where a site has it, falling back to WP-Cron elsewhere. The daily sync and the one-off sync queued when a user registers, joins the site or updates a profile are scheduled through a new queue class, so on sites with Action Scheduler each run is claimed before it starts (no double runs when two cron runners overlap). The one-off sync is debounced: while one is waiting, further changes do not queue another. Syncs queued while switched to another site, as when a user is added to a site, go to that site&#039;s WP-Cron. The daily sync is now created on init on each site where BuddyPress loads, including sites added later, instead of at activation, and the retired lh_bmn_process hook is no longer run. Deactivation removes every queued sync on both runners. The daily and one-off hook names are unchanged and are now filterable (lh_bmn_wakeup_hook, lh_bmn_single_hook), as is the use of Action Scheduler (lh_bmn_uses_action_scheduler).1.1.2: Fixes an undefined variable warning in the daily user sync. When a member has no xProfile name and no display name, first or last name or email to build one from, the sync now leaves their name alone instead of trying to save an empty one.1.1.1: Fixed newly added users missing from a site&#039;s BuddyPress member directory. The list of a site&#039;s users that the directory is limited to was cached with no expiry and never cleared, so on a site with a persistent object cache (such as LiteSpeed&#039;s) anyone added to the site after the list was first cached did not appear in the directory, the member count or the sitewide activity feed until the object cache was flushed. The list is now cleared whenever a user registers, is added to or removed from a site, or has their role on it changed, and expires after an hour as a backstop (filterable through lh_bmn_return_users_cache_expiry). The cache key has changed, so lists cached by earlier versions are ignored from this release on. Also fixed looking up another site&#039;s users, which switched to an undefined site ID and restored the site even when it had not switched, and the member count returning nothing instead of false when a site has no users. Changelog history for 1.00 and 1.01 was backfilled from the old readme before this release.1.01: Minor privacy improvement.1.00: Initial release." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
