Skip to content

[FEAT] Implement API Caching for Read-Heavy Endpoints #1305

@Dan-Gaya

Description

@Dan-Gaya

Implement API Caching for Read-Heavy Endpoints

Description

Repeated requests to static data endpoints (FAQs, help topics) cause unnecessary database load. Frequent API calls for static data can be optimized using caching.

Solution

Use Redis or an in-memory cache for frequently accessed endpoints.

Affected Endpoints

GET /api/v1/faqs
GET /api/v1/help-center/topics

Tasks

  • Identify read-heavy endpoints (e.g., /api/v1/faqs, /api/v1/help-center/topics).
  • Implement caching using Redis or an in-memory store.
  • Set cache expiration rules to prevent stale data.
  • Write tests to ensure cache efficiency.

Acceptance Criteria

  • Cached responses reduce load on the database.
  • Expired cache data is refreshed correctly.
  • Tests validate cache functionality.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions