Jake Vanderwerf
2026-01-22 58e8ae0759ccfa97c478ccae4e0778bdce70966f
inc/blocks/SummaryBlock.php
@@ -25,6 +25,9 @@
    {
        $this->cache = CacheManager::for('summary_block', WEEK_IN_SECONDS);
        add_action('init', [ $this, 'registerBlock' ]);
      if (JVB_TESTING) {
         $this->cache->clear();
      }
    }
    public function registerBlock()
@@ -55,7 +58,7 @@
        $this->config = $this->getConfig();
        $key = $this->generateKey();
        $cache = $this->cache->get($key);
        $cache = false;
        if ($cache) {
            return $cache;
        }
@@ -178,7 +181,7 @@
        if (empty($this->type)) {
            $this->type = match (true) {
                is_tax()                => jvbNoBase(get_queried_object()->taxonomy),
                is_post_type_archive()  => jvbNoBase(get_post_type()),
                is_post_type_archive()  => jvbNoBase(get_queried_object()->name),
                default                 => jvbNoBase(get_queried_object()->post_type),
            };
        }