Löschen des Caches per FTP

When clearing the Magento static cache, the website takes some time before it works properly again. This is, of course, suboptimal when implementing changes or reverting them.

 

To avoid this problem, it is possible to selectively delete cache files via FTP access. The advantage is that you can delete only the files you have actually modified. When clearing the cache via the backend, everything is deleted, which means that all files have to be cached again. This can result in unpleasant waiting times.

 

To delete the files, use FTP access to navigate to the following path in your Magento 2 installation:

 

Var/view_preprocessed/pub/static/frontend/Your_Theme/default/en_US/css/source

 

Here, you can look for the files you have modified and delete them.

 

Next, navigate to the following path:

 

Pub/static/frontend/Your_Theme/default/en_US/css

 

Delete the files located there as well.

 

Afterwards, you also need to clear the browser cache. This is necessary because the corresponding files are only regenerated when a client requests them.