public function getOperationCount($Operation)
{
if ($Operation == 'edits') {
$Operation = ['edit', 'delete'];
} else {
$Operation = explode(',', $Operation);
}
sort($Operation);
array_map('ucfirst', $Operation);
$CacheKey = 'Moderation.LogCount.' . implode('.', $Operation);
$Count = Gdn::cache()->get($CacheKey);
if ($Count === Gdn_Cache::CACHEOP_FAILURE) {
$Count = $this->getCountWhere(['Operation' => $Operation]);
Gdn::cache()->store($CacheKey, $Count, [Gdn_Cache::FEATURE_EXPIRY => 300]);
}
return $Count;
}