diff options
| author | 2025-10-01 20:21:24 +0200 | |
|---|---|---|
| committer | 2025-10-01 20:21:24 +0200 | |
| commit | 2601897c55e2040c21591f7b4f6041f71393346b (patch) | |
| tree | dcc55c41de5a91540ca61bce121917080fb6da4b /app/Models/Feed.php | |
| parent | a2446e2b309cd1330ca75f943e5f209ea8c3403e (diff) | |
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 <aledeg@users.noreply.github.com>
* Minor whitespace JSON formatting
---------
Co-authored-by: Alexis Degrugillier <aledeg@users.noreply.github.com>
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 9 |
1 files changed, 0 insertions, 9 deletions
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<FreshRSS_Entry>|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) ?? ''); } |
