Skip to content

Commit 95bb164

Browse files
seansanFlyingmana
andauthored
Mark indexProcess as STATUS_REQUIRE_REINDEX; it is cleared after (#574)
* Mark indexProcess as STATUS_REQUIRE_REINDEX; it is cleared after Mark indexProcess as STATUS_REQUIRE_REINDEX it is cleared directly after if the indexer can run $indexProcess->changeStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX); if it cannot then at least the indexer is marked as dirty (sometimes the indexer is already running and the process cannot start; in this case there is no way to see this for the admin or some watching process) * only change status, if $indexerProcess is set Co-authored-by: Daniel Fahlke <[email protected]>
1 parent c8e86ef commit 95bb164

File tree

1 file changed

+1
-0
lines changed
  • app/code/core/Mage/CatalogRule/Model

1 file changed

+1
-0
lines changed

app/code/core/Mage/CatalogRule/Model/Rule.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ public function applyAll()
319319
$this->_invalidateCache();
320320
$indexProcess = Mage::getSingleton('index/indexer')->getProcessByCode('catalog_product_price');
321321
if ($indexProcess) {
322+
$indexProcess->changeStatus(Mage_Index_Model_Process::STATUS_REQUIRE_REINDEX);
322323
$indexProcess->reindexAll();
323324
}
324325
}

0 commit comments

Comments
 (0)