Skip to content

Commit

Permalink
Update docs/source/routing/performance/caching/entity.mdx
Browse files Browse the repository at this point in the history
Co-authored-by: Maria Elisabeth Schreiber <maria.schreiber@apollographql.com>
  • Loading branch information
andrewicarlson and Meschreiber authored Nov 14, 2024
1 parent 4dc0751 commit e6224cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/source/routing/performance/caching/entity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ With entity caching enabled for this example, the router can:
- Cache the cart per user, with a small amount of data.
- Cache inventory data with a short TTL or not cache it at all.

For example, the diagram below shows how a price entity can be cached and then combined with purchase and inventory fragments to serve a `products` query. Because price data is subject to change less often than inventory data, it makes sense to cache it with a different TTL.

```mermaid
---
title: Entity Caching using the "Price" entity
---
flowchart RL
subgraph QueryResponse["JSON Response"]
n1["{
Expand Down

0 comments on commit e6224cb

Please sign in to comment.