Jake Vanderwerf
2026-09-18 a6413da67a4579866f0fd0323ddb23a7b6b9654a
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) {