Skip to content

FE-018: apiCache.ts has no TTL eviction — cache grows unbounded in SPA sessions #225

Description

@Dev-Zully

Category: Bug · Priority: Medium
Labels: frontend, api, memory

The apiCache module stores API responses in memory but has no time-to-live (TTL) eviction policy. In long-running SPA sessions (common for portfolio monitoring tools), the cache grows indefinitely.

Acceptance Criteria:

  • Add a configurable TTL (default 5 minutes for analyze results)
  • Implement LRU eviction with a max cache size (e.g. 100 entries)
  • Expose a clearCache() function for manual invalidation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programWeb

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions