Have you made adjustments to your Shopware 6 shop, but your changes are not visible? In this case, you may need to clear your cache. Depending on the cache setting, you have to clear the cache after editing the content and settings. You should clear the shop cache and if necessary, your browser cache as well. In the following we will show you how you can clear the shop cache of your Shopware 6 shop in just a few steps.
There are different ways of clearing the shop cache of your Shopware 6 shop. This is possible both via a command via the console of the server and via the Shopware 6 shop administration.
First log into the administration of your shop by calling up the following link in your browser: "https://shopdomain.de/admin". After successfully logging in, you will be directed to the administration of your shop. First click on the menu item "Settings" in the left side menu. Then click on the left on the tab "System" and then on the area "Caches & Indices". In this area you will find all settings and actions for the caches and indexes. To clear the shop cache, click on the button "Clear caches". In this case, the cache is immediately cleared synchronously for all used adapters.
Remember to rewarm the cache as needed. Alternatively, you can clear and warm up the cache using the "Clear and warm up caches" button.
In addition to the option above describing how to clear the shop cache via the administration, the clearing of the shop cache can be accomplished by using the server console. The associated CLI command is as follows: php bin/console cache:clear.
When using this variant, remember to rewarm the shop cache. The associated CLI command to warm up the cache looks like this: php bin/console cache:warmup
In Shopware 6 you can clear the shop cache as follows: