Skip to content

Commit 41a695c

Browse files
committed
Merge pull request #34 from Flowpack/dfeyer-slim-dowm-handled-objects-1
[TASK] Don't keep the full object in handledObjects property
2 parents 6d46b98 + 5a7a4ca commit 41a695c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Flowpack/ElasticSearch/Indexer/Object/ObjectIndexer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function indexObject($object, $signalInformation = NULL, Client $client =
8484
if (isset($this->handledObjects[$objectHash])) {
8585
return;
8686
}
87-
$this->handledObjects[$objectHash] = $object;
87+
$this->handledObjects[$objectHash] = true;
8888

8989
$type = $this->getIndexTypeForObject($object, $client);
9090
if ($type === NULL) {
@@ -128,7 +128,7 @@ public function removeObject($object, $signalInformation = NULL, Client $client
128128
if (isset($this->handledObjects[$objectHash])) {
129129
return;
130130
}
131-
$this->handledObjects[$objectHash] = $object;
131+
$this->handledObjects[$objectHash] = true;
132132

133133
$type = $this->getIndexTypeForObject($object, $client);
134134
if ($type === NULL) {

0 commit comments

Comments
 (0)