mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
docs: add a note on refresh argument for caching
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9207 GitOrigin-RevId: dbc778c47399db2644e40f6ffd829720c095bcad
This commit is contained in:
parent
70c230277a
commit
daf5607695
@ -80,6 +80,15 @@ query MyCachedQuery @cached(refresh: true) {
|
||||
}
|
||||
```
|
||||
|
||||
:::info Use a literal boolean value for refresh
|
||||
|
||||
`refresh` must be provided with literal boolean value and not as a variable to
|
||||
have the desired effect. If the value of this refresh argument is provided via a
|
||||
GraphQL variable, then there would be a cache miss, as it is considered a
|
||||
different query and will generate a new cache key.
|
||||
|
||||
:::
|
||||
|
||||
## Rate Limiting
|
||||
|
||||
Cache writes are rate limited, with a rate depending on your plan. The rate limit is based on the total number of bytes
|
||||
|
Loading…
Reference in New Issue
Block a user