Make network counts at the group level system level configurable

This commit is contained in:
Hank Grabowski 2022-07-08 15:29:34 -04:00
parent 464fdb955c
commit e57e1ba1e5
6 changed files with 200 additions and 180 deletions

View file

@ -113,7 +113,8 @@ class Ping extends BaseModule
}
DBA::close($items);
if ($network_count) {
$compute_group_counts = DI::config()->get('system','compute_group_counts');
if ($network_count && $compute_group_counts) {
// Find out how unseen network posts are spread across groups
$group_counts = Group::countUnseen();
if (DBA::isResult($group_counts)) {