Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions .changesets/fix_response_cache_redis_requirement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Validate Redis configuration based on response cache enabled state ([PR #8684](https://github.com/apollographql/router/pull/8684))

Previously, the router would attempt to connect to Redis for response caching regardless of whether response caching was enabled or disabled. This could cause unnecessary connection attempts and configuration errors even when the feature was explicitly disabled.

Now, the router ignores Redis configuration if response caching is disabled.
If response caching is configured to be _enabled_, Redis configuration is required, and missing Redis configuration will raise an error on startup:

> Error: you must have a redis configured either for all subgraphs or for subgraph "products"

By [@bnjjj](https://github.com/bnjjj) in https://github.com/apollographql/router/pull/8684
Loading