Jake Vanderwerf
2026-09-15 01e9a8e40351a87f6548a4f55de842d6f6918ad0
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) {