$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
/** @var \Magento\Framework\App\Cache\Manager $cacheManager */
$cacheManager = $objectManager->create('Magento\Framework\App\Cache\Manager');
$types = $cacheManager->getAvailableTypes();
$cacheManager->clean($types);
Magento2代码里缓存
最新推荐文章于 2020-07-14 17:04:35 发布