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/Feed.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'app/Models/Feed.php') diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 112da1a00..4f8a9130d 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -290,15 +290,6 @@ class FreshRSS_Feed extends Minz_Model { return $this->category?->id() ?: $this->categoryId; } - /** - * @return list|null - * @deprecated - */ - public function entries(): ?array { - Minz_Log::warning(__METHOD__ . ' is deprecated since FreshRSS 1.16.1!'); - $simplePie = $this->load(false, true); - return $simplePie == null ? [] : array_values(iterator_to_array($this->loadEntries($simplePie))); - } public function name(bool $raw = false): string { return $raw || $this->name != '' ? $this->name : (preg_replace('%^https?://(www[.])?%i', '', $this->url) ?? ''); } -- cgit v1.2.3