Skip to content

feat: auto-refresh NETWORK.md on multisite structural changes#882

Merged
chubes4 merged 1 commit intomainfrom
fix/881-network-md-auto-refresh
Mar 20, 2026
Merged

feat: auto-refresh NETWORK.md on multisite structural changes#882
chubes4 merged 1 commit intomainfrom
fix/881-network-md-auto-refresh

Conversation

@chubes4
Copy link
Member

@chubes4 chubes4 commented Mar 19, 2026

Summary

  • Adds datamachine_regenerate_network_md() — same pattern as SITE.md (60s debounce via network transient, <!-- CUSTOM --> marker preservation, site_context_enabled check)
  • Adds datamachine_register_network_md_invalidation() with hooks for site lifecycle (wp_initialize_site, wp_delete_site), URL/name changes, plugin activations, and theme switches
  • Registers hooks in bootstrap.php on init — only fires on multisite installs

Fixes #881

Testing

Tested on extrachill.com production:

  • Regeneration pulls live data (confirmed Studio URL updated from http:// to https:// after wp option update)
  • <!-- CUSTOM --> marker content survives regeneration
  • 60-second debounce prevents excessive writes
  • Single-site guard exits early when not multisite

@github-actions
Copy link

github-actions bot commented Mar 19, 2026

Homeboy Results — data-machine

Lint

Failure Digest

Lint Failure Digest

Autofixability classification

  • Overall: human_needed
  • Autofix enabled: no
  • Autofix attempted this run: no
  • Human-needed failed commands:
    • lint
  • Failed commands with available automated fixes:
    • lint
  • Automated fixes are disabled for this step. Commands with available fix support in this run: lint

Machine-readable artifacts

  • homeboy-lint-summary.json
  • homeboy-test-failures.json
  • homeboy-audit-summary.json
  • homeboy-autofixability.json

⚡ Scope: changed files only

lint (changed files only)

Test

⚡ Scope: changed files only

test (changed files only)

Audit

⚡ Scope: changed files only

audit (changed files only)

Tooling versions
  • Homeboy CLI: homeboy 0.82.0+5e6ac282
  • Extension: wordpress from https://github.com/Extra-Chill/homeboy-extensions
  • Extension revision: unknown
  • Action: Extra-Chill/homeboy-action@v1

Homeboy Action v1

@chubes4 chubes4 merged commit 4aa4fc8 into main Mar 20, 2026
2 of 3 checks passed
@chubes4 chubes4 deleted the fix/881-network-md-auto-refresh branch March 20, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NETWORK.md should auto-refresh on structural changes like SITE.md

1 participant