core1211, you really surprised me by providing a solution that I hadn’t even applied myself… after your reply, I tried adding the $agent argument to the function static function counts ($agent, $cached=true, $criteria=array()) {, and it seems to have helped—unless I run into some other issue with this fix.
--- class.search.php-orig 2026-01-15 17:20:06.000000000 +0200
+++ class.search.php 2026-03-17 13:32:54.408090905 +0200
@@ -1015,7 +1015,7 @@
$counts = array_merge($counts, $query->values()->one());
} catch (Exception $ex) {
foreach ($queues as $q)
- $counts['q'.$q->getId()] = $q->getTotal();
+ $counts['q'.$q->getId()] = $q->getTotal($agent);
}
// Always cache the results