Skip to content

Commit

Permalink
v6.45.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Sep 20, 2024
1 parent bebb209 commit 0fe0f92
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ You can find and compare releases at the [GitHub release page](https://github.co

## Unreleased

## v6.45.0

### Added

- Cache query validation results https://github.com/nuwave/lighthouse/pull/2603
Expand Down
14 changes: 9 additions & 5 deletions docs/6/performance/query-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

In order to speed up GraphQL query parsing, the parsed queries can be stored in the Laravel cache.

Query caching is enabled by default. You can define cache store and cache duration, see `config/lighthouse.php`.
Query caching is enabled by default.
You can define cache store and cache duration, see `config/lighthouse.php`.

Make sure you flush the query cache when you deploy an upgraded version of the `webonyx/graphql-php` dependency:

php artisan cache:clear
```sh
php artisan cache:clear
```

## Automated Persisted Queries

Expand All @@ -17,11 +20,12 @@ APQ is enabled by default, but depends on query caching being enabled.

## Query validation caching

Lighthouse can cache the result of the query validation process as well. It only caches queries without errors.
Lighthouse can cache the result of the query validation process as well.
It only caches queries without errors.
`QueryComplexity` validation can not be cached as it is dependent on the query, so it is always executed.

Query validation caching is disabled by default. You can enable it by setting `validation_cache.enable` to `true` in the
configuration in `config/lighthouse.php`.
Query validation caching is disabled by default.
You can enable it by setting `validation_cache.enable` to `true` in `config/lighthouse.php`.

## Testing caveats

Expand Down
7 changes: 5 additions & 2 deletions docs/master/performance/query-caching.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

In order to speed up GraphQL query parsing, the parsed queries can be stored in the Laravel cache.

Query caching is enabled by default. You can define cache store and cache duration, see `config/lighthouse.php`.
Query caching is enabled by default.
You can define cache store and cache duration, see `config/lighthouse.php`.

Make sure you flush the query cache when you deploy an upgraded version of the `webonyx/graphql-php` dependency:

php artisan cache:clear
```sh
php artisan cache:clear
```

## Automated Persisted Queries

Expand Down

0 comments on commit 0fe0f92

Please sign in to comment.