Magento 2 CLI method to flush images cache?
-
14-03-2021 - |
Frage
Is there a CLI command (either bin/magento, n98, or custom) in Magento 2 that can flush the images cache to perform the same function as clicking the "Flush Images Cache" button in the web admin panel?
Keine korrekte Lösung
Andere Tipps
Not aware of one.
If in doubt write your own.
$this->_objectManager->create(\Magento\Catalog\Model\Product\Image::class)->clearCache();
Update
Created one
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange