Skip to content

ref(domains): cache active host lookups with invalidation - #10

Merged
Seiger merged 1 commit into
Seiger:masterfrom
MiddleSokilAI:sokil/optimize-package-runtime
Oct 25, 2026
Merged

Seiger merged 1 commit into
Seiger:masterfrom
MiddleSokilAI:sokil/optimize-package-runtime

Conversation

@MiddleSokilAI

@MiddleSokilAI MiddleSokilAI commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Every settings load queries the active exact-host domain, while readiness checks repeatedly inspect schema metadata.

Cache positive/negative exact-host lookups and positive table readiness by database identity. Observe model/builder/raw SQL writes, migrations and outer transaction completion. Retain hostless CLI behavior and trimmed setHost overrides. Custom scopes/retrieved observers use the uncached path; ephemeral SQLite connections get isolated identities. Direct Cache::flush() resets readiness without requiring a flush event.

Target branch

master is the support line containing the v1.1.8 source commit installed in the local project. This PR introduces no dependency or release-version changes.

Verification

  • 34 new regression checks passed on PHP 8.4.20 and PHP 8.5.12, using isolated SQLite/file fixtures; new regressions fail on warnings and deprecations.
  • Changed PHP files lint clean on both versions; git diff --check is clean.
  • Existing resource-alias suite: 42 checks passed on both runtimes.
  • Added a GitHub Actions PHP 8.4/8.5 runtime matrix with an Evolution CMS 3.6.x dependency tree.

Scope and limits

Temporary profiling, project-specific adapters and custom project packages are excluded. Runtime changes use existing package/framework dependencies and do not depend on the separate core optimization PR. No end-to-end response-time claim is made. The upstream GitHub Actions runtime matrix passed on PHP 8.4 and PHP 8.5 for the current PR head.

Shared entries have a five-minute TTL. Observed application writes invalidate immediately; direct writes from another application require a cache clear for immediate visibility. Transactions bypass shared entries.

@Seiger
Seiger merged commit 41ba55e into Seiger:master Oct 25, 2026
2 checks passed
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.

2 participants