refactor: namespace cache keys to prevent collisions #50
No reviewers
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-agentic#50
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "refactor/namespace-cache-keys"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
'agentic.for-agents.json'cache key inForAgentsControllerwith a config-driven key (mcp.cache.for_agents_key) to prevent cross-module collisionsmcp.cache.for_agents_ttlconfig entry (default 3600 s);Cache-Controlheader now reflects the configured valuecacheKey()public method on the controller for testability and cache invalidation ergonomicstests/Feature/ForAgentsControllerTest.phpcovering key customisation, cache storage/invalidation, TTL, and response structureCloses #20 (CQ-003 in TODO.md)
Test plan
ForAgentsControllerTest– cache key uses config valueForAgentsControllerTest– falls back to default key when config is nullForAgentsControllerTest– data is stored under the namespaced keyForAgentsControllerTest–Cache::forget(cacheKey())invalidates cacheForAgentsControllerTest– configured TTL reflected inCache-Controlheader🤖 Generated with Claude Code