Skip to content

Commit

Permalink
docs: add invalidation mechanism details for Reverse Proxy Cache (#1571)
Browse files Browse the repository at this point in the history
* docs: add invalidation mechanism details for Reverse Proxy Cache

* Update guides/hosting/infrastructure/reverse-http-cache.md

* Update guides/hosting/infrastructure/reverse-http-cache.md

* Move watcher to the EOF

---------

Co-authored-by: Micha Hobert <[email protected]>
  • Loading branch information
shyim and Isengo1989 authored Nov 20, 2024
1 parent bd3ffe0 commit 58348e3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion guides/hosting/infrastructure/reverse-http-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,12 @@ For manual deployment, you can find the VCL Snippets here:

<PageRef page="https://github.com/shopware/recipes/blob/main/shopware/fastly-meta/6.6/config/fastly/recv/default.vcl" title="vcl_recv" target="_blank" />

<!-- {"WATCHER_URL":"https://raw.githubusercontent.com/shopware/shopware/trunk/src/Storefront/Resources/config/packages/storefront.yaml","WATCHER_HASH":"3ae5bc3363521c72d05f4ecbb89b3505"} -->
### Cache Invalidations

The Reverse Proxy Cache shares the same invalidation mechanism as the Object Cache and has the same tags. So, when a product is invalidated, the object cache and the HTTP cache will also be invalidated.

::: warning
`bin/console cache:clear` will also clear the HTTP cache. If this is not intended, you should manually delete the `var/cache` folder. The object cache can be cleared with `bin/console cache:pool:clear --all` explicitly.
:::

<!-- {"WATCHER_URL":"https://raw.githubusercontent.com/shopware/shopware/trunk/src/Storefront/Resources/config/packages/storefront.yaml","WATCHER_HASH":"3ae5bc3363521c72d05f4ecbb89b3505"} -->

0 comments on commit 58348e3

Please sign in to comment.