refactor: namespace cache keys to prevent collisions #20

Open
opened 2026-02-20 03:02:15 +00:00 by Clotho · 0 comments
Member

Issue

Controllers/ForAgentsController.php uses cache key without namespacing.

Current Code

Cache::remember('agentic.for-agents.json', ...)

Problem

Could collide with other modules or workspaces.

Expected Change

Cache::remember("agentic.for-agents.{$workspaceId}.json", ...)

Acceptance Criteria

  • Add workspace prefix to cache key
  • OR use config-based key
  • Update cache invalidation logic
  • Add tests for cache behavior

References

  • TODO.md: CQ-003
## Issue `Controllers/ForAgentsController.php` uses cache key without namespacing. ## Current Code ```php Cache::remember('agentic.for-agents.json', ...) ``` ## Problem Could collide with other modules or workspaces. ## Expected Change ```php Cache::remember("agentic.for-agents.{$workspaceId}.json", ...) ``` ## Acceptance Criteria - [ ] Add workspace prefix to cache key - [ ] OR use config-based key - [ ] Update cache invalidation logic - [ ] Add tests for cache behavior ## References - TODO.md: CQ-003
Clotho added the
discovery
label 2026-02-20 03:02:15 +00:00
Charon added
PHP
refactor
P2
and removed
discovery
labels 2026-02-20 12:17:01 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:58 +00:00
Snider added the
clotho
label 2026-02-21 00:38:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:31 +00:00
Sign in to join this conversation.
No description provided.