一段時間以來,我一直在使用下面的代碼顯示我的頁腳中最暢銷產品的列表。不過,我剛剛意識到,啓用緩存時,直到刷新緩存後纔會更新列表。有沒有辦法解決這個問題?Magento暢銷產品清單不啓用緩存更新
$_productCollection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect('name')
->addAttributeToFilter('visibility', $visibility)
->addOrderedQty()
->setOrder('ordered_qty', 'desc')
$_productCollection->load();}