Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行 Magento 的多商店安装,并且已经达到手动产品导入和后续索引重建花费太长时间的地步。我想错开工作,但需要知道如何在每个站点的基础上隔离索引的重建。
$indexer = Mage::getResourceModel('catalog/product_flat_indexer') /* @var $indexer Mage_Catalog_Model_Resource_Product_Flat_Indexer */ $indexer->rebuild(store_id);