Skip to content

Implement Caching for Frequent Topic Searches #24

@imDarshanGK

Description

@imDarshanGK

Problem:

  • Repeated searches for same topic hit API unnecessarily

Solution:

  • Add Redis/file-based caching
  • Cache duration: 6 hours for trending topics
  • Cache key: topic + max_results

Technical Approach:

  1. Use Flask-Caching
  2. Add @cache.cached() decorator
  3. Configurable in config.py

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions