inc/helpers/formatting.php
@@ -41,6 +41,9 @@ { $count = count($arr); $and = ($and) ? ' and ' : ' or '; if (empty($arr)){ return ''; } switch ($count) { case '1': return implode(',', $arr); @@ -74,7 +77,7 @@ */ function jvbFormatRating(int $ID, string $type = 'post'):string { $cache = Cache::for('rating', WEEK_IN_SECONDS)->connect('post')->connect('taxonomy')->connect('user'); $cache = Cache::for('rating', $type, WEEK_IN_SECONDS); $cached = $cache->get($ID); if ($cached) {