From 58e8ae0759ccfa97c478ccae4e0778bdce70966f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 22 Jan 2026 22:40:02 +0000
Subject: [PATCH] =DirectoryManager.php updates, some javascript tweaks for CRUD.js, and minor style changes

---
 inc/blocks/SummaryBlock.php |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/inc/blocks/SummaryBlock.php b/inc/blocks/SummaryBlock.php
index 6fc6da2..84d99b3 100644
--- a/inc/blocks/SummaryBlock.php
+++ b/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()
@@ -54,7 +57,6 @@
     {
         $this->config = $this->getConfig();
         $key = $this->generateKey();
-		$this->cache->clear();
         $cache = $this->cache->get($key);
 
         if ($cache) {

--
Gitblit v1.10.0