Group
  • Performance

    Add caching to expensive database reads

    Introduces a cache layer with sensible TTLs and invalidation hooks for your most frequently hit queries.

    • Improve quality
    • Intermediate
    • General

Free Prompt

Add a caching layer to my most expensive and frequently hit database reads. Use sensible TTLs and add invalidation hooks so cached data never goes stale when the underlying records change.

What This Does / How This Helps

Adds a cache layer in front of your most expensive queries with sensible TTLs and invalidation hooks so data never goes stale. Pages that hit the database hard start loading instantly, and your database breathes easier as traffic grows.

Want to skip doing this by hand?

Fortivibe audits your app for all of the areas these prompts cover (and more).

See What We Check

Related Prompts