From 2601897c55e2040c21591f7b4f6041f71393346b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 1 Oct 2025 20:21:24 +0200 Subject: API optimisation: more streaming of outputs (#8041) * API optimisation: more streaming of outputs I spotted a memory issue when testing https://github.com/FreshRSS/FreshRSS/pull/7714 Attempt to stream results more, instead of keeping too much in memory. Could be further improved. * Apply suggestions from code review Co-authored-by: Alexis Degrugillier * Minor whitespace JSON formatting --------- Co-authored-by: Alexis Degrugillier --- app/Models/Entry.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 0769762f8..5aa819a68 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -1120,6 +1120,7 @@ HTML; $category = $feed == null ? null : $feed->category(); $item = [ + 'frss:id' => $this->id(), 'id' => 'tag:google.com,2005:reader/item/' . self::dec2hex($this->id()), 'crawlTimeMsec' => substr($this->dateAdded(true, true), 0, -3), 'timestampUsec' => '' . $this->dateAdded(true, true), //EasyRSS & Reeder -- cgit v1.2.3