Skip to content

Commit 17a6a25

Browse files
committed
Flushes feed on each item and adds a line break.
Signed-off-by: Carlos Escribano <carlos@doofinder.com>
1 parent cdf7821 commit 17a6a25

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/code/community/Doofinder/Feed/Model/Generator.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ protected function _addProductToXml(
335335
}
336336

337337
$this->_oXmlWriter->endElement();
338+
$this->_flushFeed(true);
338339

339340
$iDumped++;
340341
}
@@ -548,9 +549,14 @@ protected function _initFeed()
548549
}
549550
}
550551

551-
protected function _flushFeed()
552+
protected function _flushFeed($break = false)
552553
{
553554
$this->_response .= $this->_oXmlWriter->flush(true);
555+
556+
if ($break)
557+
{
558+
$this->_response .= PHP_EOL;
559+
}
554560
}
555561

556562
protected function _closeFeed()

0 commit comments

Comments
 (0)