Skip to content

Commit

Permalink
EZP-29817: Varnish - Purge requests with tokens (ibexa#522)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikaK committed Feb 1, 2019
1 parent 99f21b0 commit 7c903aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/guide/http_cache.md
Expand Up @@ -354,6 +354,13 @@ ezpublish:

By default blocks are not cached (TTL = 0) for backwards compatibility reasons.

!!! note "Invalidating Varnish cache using tokens"

In setups where the Varnish server IP can change (for example on platform.sh/eZ Platform Cloud),
you can use token-based cache invalidation via [ez_purge_acl](https://github.com/ezsystems/ezplatform-http-cache/blob/master/docs/varnish/vcl/varnish4.vcl#L166).

In such a case use a strong, secure hash and make sure to keep the token secret.

## Context-aware HTTP cache

As it is based on Symfony, eZ Platform uses HTTP cache extended with features like content awareness.
Expand Down

0 comments on commit 7c903aa

Please sign in to comment.