Jake Vanderwerf
2026-01-25 b38f03c0e7218762d90fa5092696b127f24f36db
src/summary/render.php
@@ -1,6 +1,6 @@
<?php
use JVBase\managers\CacheManager;
use JVBase\managers\Cache;
if (!defined('ABSPATH')) {
    exit; // Exit if accessed directly
@@ -31,10 +31,9 @@
function jvbRenderArtistSummary():string
{
    $current = get_queried_object();
    $cache = CacheManager::for('artists', WEEK_IN_SECONDS);
    $key = 'artist-bio-'.$current->ID;
    $cache = Cache::for('artistSummary', WEEK_IN_SECONDS);
    $key = $current->ID;
    $cached = $cache->get($key);
    $cached = false;
    if ($cached !== false) {
        return $cached;
    }
@@ -44,7 +43,7 @@
    $artist = jvbContentFromUser((int)$current->post_author);
   $sections = JVB_CONTENT[jvbNoBase($current->post_type)]['sections']??[];
   jvbDump($sections);
//    $handler = JVB()->getContent(str_replace(BASE,'', $current->post_type));
@@ -97,8 +96,8 @@
                            $link = get_term_link((int)$style, BASE.'style');
                            ?>
                            <li>
                                <a href="<?=$link?>" title="Learn more about <?=$term->name?>">
                                    <?=strtolower($term->name)?>
                                <a href="<?=$link?>" title="Learn more about <?=html_entity_decode($term->name)?>">
                                    <?=strtolower(html_entity_decode($term->name))?>
                                </a>
                            </li>
                            <?php
@@ -158,8 +157,8 @@
{
    $current = get_queried_object();
    $cache = CacheManager::for('shops', WEEK_IN_SECONDS);
    $key = 'shop-bio-'.$current->term_id;
    $cache = Cache::for('shop_bio', WEEK_IN_SECONDS)->connect('taxonomy');
    $key = $current->term_id;
    $cached = $cache->get($key);
    $cached = false;
    if ($cached !== false) {
@@ -167,8 +166,6 @@
    }
    ob_start();
    $handler = JVB()->getContent('shop');
    $meta = new JVBase\meta\MetaManager($current->term_id, 'term');
    $rating = $meta->getValue('average_rating');
@@ -281,7 +278,7 @@
    <?php
    $finished = ob_get_clean();
//    $cache->set($key, $finished);
    $cache->set($key, $finished);
    return $finished;
}
@@ -289,10 +286,9 @@
function jvbRenderTermSummary()
{
    $current = get_queried_object();
    $cache = CacheManager::for(jvbNoBase($current->taxonomy), WEEK_IN_SECONDS);
    $cache = Cache::for('term_summary', WEEK_IN_SECONDS)->connect('taxonomy');
    $key = $current->ID;
    $cached = $cache->get($key);
    $cached = false;
    if ($cached !== false) {
        return $cached;
    }