Jake Vanderwerf
2026-08-25 3d25ad7de4fdbb3eba2cde2a62422e6be5d79a0a
inc/helpers/renderFields.php
@@ -62,9 +62,9 @@
 * @param string $type
 * @return string
 */
function jvbRenderLinks(int $ID, string $type =''):string
function jvbRenderLinks(int $ID, string $type ='post'):string
{
    $cache = Cache::for('user_links', WEEK_IN_SECONDS)->connect('post')->connect('taxonomy')->connect('user');
    $cache = Cache::for('user_links_'.$type, $type,WEEK_IN_SECONDS);
    $cached = $cache->get($ID);
    if ($cached) {
        return $cached;
@@ -143,13 +143,16 @@
/**
 * @param int $ID
 * @param string $type
 * @param ?string $type
 *
 * @return string
 */
function jvbRenderContactInfo(int $ID, string $type = ''):string
function jvbRenderContactInfo(int $ID, ?string $type = null):string
{
    $cache = Cache::for('contact', WEEK_IN_SECONDS)->connect('post')->connect('taxonomy');
   if (is_null($type)) {
      return '';
   }
    $cache = Cache::for('contact_'.$type, $type,WEEK_IN_SECONDS);
    $cached = $cache->get($ID);
    if($cached){
@@ -376,7 +379,7 @@
         return '';
      }
   }
   $cache = Cache::for($term->taxonomy.'_link')->connect('taxonomy');
   $cache = Cache::for($term->taxonomy.'_link', 'term');
   $key = $term->term_id;
   return $cache->remember(
      $key,
@@ -599,7 +602,7 @@
      return '';
   }
   $cache = Cache::for('locations')->connect('taxonomy');
   $cache = Cache::for('tax_locations', 'term');
   $key = $cache->generateKey($location);
   $cached = false;