mirror of
https://github.com/getgrav/grav.git
synced 2026-02-23 07:01:26 +01:00
Fixed bug in clearing Flex index (partial fix)
This commit is contained in:
@@ -225,6 +225,7 @@ class PageObject extends FlexPageObject
|
||||
*/
|
||||
protected function onAfterSave(array $variables): void
|
||||
{
|
||||
$this->getFlexDirectory()->reloadIndex();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user