From 0c4dde3d9d70811694c3862ea6f1204717db574f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Mu=CC=88ller?= Date: Mon, 29 Jun 2015 18:31:37 +0200 Subject: [PATCH] [BUGFIX] Clear indexedNodeData cache on ``flush`` The NodeIndexer should clear the ``indexedNodeData`` cache when the ``flush`` method is called to avoid side effects in batch operations. --- .../ContentRepositoryAdaptor/Indexer/NodeIndexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Flowpack/SimpleSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php b/Classes/Flowpack/SimpleSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php index 6c373cb..1c5aabb 100644 --- a/Classes/Flowpack/SimpleSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php +++ b/Classes/Flowpack/SimpleSearch/ContentRepositoryAdaptor/Indexer/NodeIndexer.php @@ -140,7 +140,7 @@ public function removeNode(Node $node) { * @return void */ public function flush() { - // no operation, just here to fullfill the interface. + $this->indexedNodeData = array(); } /**