Skip to content

Commit a2c731f

Browse files
authored
varnish is not provided by the default distribution anymore (#1802)
1 parent d8517ff commit a2c731f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/performance.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ cache. This ensures that the content served will always be fresh, because the ca
2020
most specific cases such as the invalidation of collections when a document is added or removed or for relationships and
2121
inverse relations is built-in.
2222

23-
Integration with Varnish and Doctrine ORM is shipped with the core library, and [Varnish](https://varnish-cache.org/) is
24-
included in the Docker setup provided with the [API Platform distribution](../distribution/index.md). If you use the distribution,
25-
this feature works out of the box.
23+
Integration with Varnish and Doctrine ORM is shipped with the core library.
2624

27-
If you don't use the distribution, add the following configuration to enable the cache invalidation system:
25+
Add the following configuration to enable the cache invalidation system:
2826

2927
```yaml
3028
api_platform:
@@ -40,7 +38,7 @@ api_platform:
4038
vary: ['Content-Type', 'Authorization', 'Origin']
4139
```
4240
43-
Support for reverse proxies other than Varnish can easily be added by implementing the `ApiPlatform\HttpCache\PurgerInterface`.
41+
Support for reverse proxies other than Varnish can be added by implementing the `ApiPlatform\HttpCache\PurgerInterface`.
4442
Two purgers are available, the http tags (`api_platform.http_cache.purger.varnish.ban`) or the surrogate key implementation
4543
(`api_platform.http_cache.purger.varnish.xkey`). You can specify the implementation using the `purger` configuration node,
4644
for example to use the xkey implementation:

0 commit comments

Comments
 (0)