Skip to content

fix: replace the memcache stats store with a process-local array - #3

Merged
ernolf merged 1 commit into
mainfrom
ernolf/fix/stats-store
Jul 17, 2026
Merged

fix: replace the memcache stats store with a process-local array#3
ernolf merged 1 commit into
mainfrom
ernolf/fix/stats-store

Conversation

@ernolf

@ernolf ernolf commented Jul 17, 2026

Copy link
Copy Markdown
Owner
  • on_stats and the response handlers run in the same PHP process; the memcache detour stored entries with TTL 0 and its ICacheFactory::create() call no longer exists in NC 32+
  • the store now holds the raw handler stats keyed by request ID, and every response path clears its entry — including skipped log levels and failed stream wraps, which previously leaked entries
  • drop the obsolete try/catch wrappers around store access and the matching psalm suppressions

- on_stats and the response handlers run in the same PHP process; the memcache detour stored entries with TTL 0 and its ICacheFactory::create() call no longer exists in NC 32+
- the store now holds the raw handler stats keyed by request ID, and every response path clears its entry — including skipped log levels and failed stream wraps, which previously leaked entries
- drop the obsolete try/catch wrappers around store access and the matching psalm suppressions

Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
@ernolf
ernolf merged commit 4777252 into main Jul 17, 2026
36 checks passed
@ernolf
ernolf deleted the ernolf/fix/stats-store branch July 17, 2026 15:24
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.

1 participant