【发布时间】:2017-02-14 12:46:22
【问题描述】:
我正在尝试在管理端的产品保存/保存并继续后以编程方式刷新 Magento 缓存。 我已经尝试了
Mage::app()->getCacheInstance()->cleanType('block_html');
目录产品保存事件后的观察者。我也尝试
foreach($types as $type) {
$c = Mage::app()->getCacheInstance()->cleanType($type);
Mage::dispatchEvent('adminhtml_cache_refresh_type', array('type' => $type));
}
但这不起作用。
【问题讨论】: