From e0d9ffcbc12f0bdf42cbb036646a23ee43fbf6e0 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sat, 15 Feb 2025 16:44:02 +0000 Subject: 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. --- classes/RSSUtils.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'classes/RSSUtils.php') 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> $filters * @param array $tags - * @param array>|null $matched_rules - * @param array>|null $matched_filters + * @param array>|null &$matched_rules + * @param array>|null &$matched_filters * * @return array> An array of filter action arrays with keys "type" and "param" */ -- cgit v1.2.3-54-g00ecf