Home Blog Contact

How to clear the cache in Shopware 6?

Jan 25th 2022

That's very simple. Let's get it started. There are two forms:


1) From command line:

php bin/console cache:clear

This command will clear your cache. Theoretically you could just remove all the files in the var/cache directory, however that don't work all the time, as the cache might be laying on other storage, like Redis for example. That's why running cache:clear is better.


2) From admin

You should go o menu Settings > System > Caches & Indexes. Just click in the Clear caches button.

Clear cache in Showpare 6

Yeap, caches cleaned!