Skip to content

Commit 7042986

Browse files
author
Oleksandr Iegorov
committed
MC-21948: Products index data delete process fires before indexation instead of right before insert indexed data to index tables during partial reindex
1 parent bdb12d8 commit 7042986

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Catalog/Model/Category.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,8 @@ public function reindex()
12011201
|| $this->dataHasChangedFor('is_active')) {
12021202
if (!$productIndexer->isScheduled()) {
12031203
$productIndexer->reindexList($this->getPathIds());
1204+
} else {
1205+
$productIndexer->invalidate();
12041206
}
12051207
}
12061208
}
@@ -1356,6 +1358,8 @@ public function getChildrenData()
13561358
return $this->getData(self::KEY_CHILDREN_DATA);
13571359
}
13581360

1361+
//@codeCoverageIgnoreEnd
1362+
13591363
/**
13601364
* Return Data Object data in array format.
13611365
*
@@ -1384,8 +1388,6 @@ public function __toArray()
13841388
return $data;
13851389
}
13861390

1387-
//@codeCoverageIgnoreEnd
1388-
13891391
/**
13901392
* Convert Category model into flat array.
13911393
*

0 commit comments

Comments
 (0)