diff options
| author | wn_ <invalid@email.com> | 2025-02-15 16:44:02 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2025-02-15 16:51:25 +0000 |
| commit | e0d9ffcbc12f0bdf42cbb036646a23ee43fbf6e0 (patch) | |
| tree | 08278df32da1eb3689a58d32dc0ad5e9f461dcb2 /classes/RSSUtils.php | |
| parent | 169ff6de341b20803796298d8ffea3ee4c4c4f09 (diff) | |
Only continue filter testing when there are likely more entries to check.
Prior to this, a filter test could needlessly result in up to 100 backend requests (limit 100, max_offset 10000) when the filter's associated feeds+categories have fewer than 10000 entries.
Diffstat (limited to 'classes/RSSUtils.php')
| -rw-r--r-- | classes/RSSUtils.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php index 3ede6bf3e..b68f7e296 100644 --- a/classes/RSSUtils.php +++ b/classes/RSSUtils.php @@ -1514,10 +1514,11 @@ class RSSUtils { } */ /** + * @todo rename this method to indicate it returns the filter actions that should be ran * @param array<int, array<string, mixed>> $filters * @param array<int, string> $tags - * @param array<int, array<string, mixed>>|null $matched_rules - * @param array<int, array<string, mixed>>|null $matched_filters + * @param array<int, array<string, mixed>>|null &$matched_rules + * @param array<int, array<string, mixed>>|null &$matched_filters * * @return array<int, array<string, string>> An array of filter action arrays with keys "type" and "param" */ |