Skip to content

Commit

Permalink
[BUGFIX] Clear indexedNodeData cache on flush
Browse files Browse the repository at this point in the history
The NodeIndexer should clear the ``indexedNodeData`` cache when
the ``flush`` method is called to avoid side effects in batch operations.
  • Loading branch information
kitsunet committed Jun 29, 2015
1 parent 4bb3c4f commit 0c4dde3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 0c4dde3

Please sign in to comment.