Fixed bug in clearing Flex index (partial fix)

This commit is contained in:
Matias Griese
2020-07-17 19:40:57 +03:00
parent 82f1182503
commit 2d50cc2b2d
2 changed files with 2 additions and 2 deletions

View File

@@ -225,6 +225,7 @@ class PageObject extends FlexPageObject
*/
protected function onAfterSave(array $variables): void
{
$this->getFlexDirectory()->reloadIndex();
}
/**

View File

@@ -678,8 +678,7 @@ class FlexDirectory implements FlexAuthorizeInterface
*/
public function reloadIndex(): void
{
$cache = $this->getCache('index');
$cache->delete('__keys');
$this->getCache('index')->clear();
$this->indexes = [];
$this->objects = [];