Skip to content

Commit

Permalink
Update cache clearing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
AydinHassan committed Feb 11, 2025
1 parent e55ae8e commit c02b6f4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions guides/hosting/infrastructure/reverse-http-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,12 @@ For manual deployment, you can find the VCL Snippets here:

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.
:::
There are a few different cache clearing commands:

1. `bin/console cache:clear` - Clears and warms up the application cache
2. `bin/console cache:clear:all` - Clears everything, including application cache, cache pools and the HTTP cache
3. `bin/console cache:clear:http` - Clears the reverse proxy cache if enabled, if not it clears the `http` cache pool

If you only want to clear the http cache, use `bin/console cache:clear:http`

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

0 comments on commit c02b6f4

Please sign in to comment.