Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions content/collections/pages/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,20 @@ Cached responses are automatically invalidated when content is changed. Dependin
],
```

### Cache exclusion

Responses can be excluded from the whole-response cache by adding their query names to the `exclude` array in `config/statamic/graphql.php`.

```php
'cache' => [
'expiry' => 60,
'exclude' => [
'ping',
'user',
],
],
```

### Disabling caching

If you wish to disable caching altogether, set `cache` to `false`.
Expand Down