Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
esamattis committed Oct 8, 2020
1 parent d5958ff commit c8b3056
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,8 @@ to be more specific with cache clearing you must pass in a `zone` property to
clear that zone with `CacheManager::clear_zone($zone)`.

The `zone` is a caching zone the cache will be stored to. Zones are needed
because the cached values are written to multiple cache keys.

Multiple cache keys are used because these things can change between
queries:

- GraphQL variables
- Current user id
- The actual GraphQL query content

This also means that caches are not shared between different versions of the
queries or between users.
because the cached responses are written to multiple cache keys because graphql
variables and the current user can change between calls to the same query

The zone can be cleared with `CacheManager::clear_zone()`

Expand Down

0 comments on commit c8b3056

Please sign in to comment.