From c16a4d78d07e81ecdd2ff9b1b9090560ab2fe488 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 04 Sep 2026 22:25:09 +0000
Subject: [PATCH] =Got the panel loading up the fields, organized by section! Now to ensure it saves properly. Still need to add: upload fields, selector fields, repeater/taglist/group fields

---
 inc/blocks/SimpleCalendarBlock.php |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/inc/blocks/SimpleCalendarBlock.php b/inc/blocks/SimpleCalendarBlock.php
index 8b46bca..e294792 100644
--- a/inc/blocks/SimpleCalendarBlock.php
+++ b/inc/blocks/SimpleCalendarBlock.php
@@ -30,7 +30,7 @@
 
     public function __construct()
     {
-        $this->cache = Cache::for('menu', DAY_IN_SECONDS)->connect('post');
+        $this->cache = Cache::for('calendar', 'post',  DAY_IN_SECONDS);
         add_action('init', [ $this, 'registerBlock' ]);
     }
 
@@ -82,10 +82,9 @@
 			return '';
 		}
 
-		$key = $this->cache->generateKey($this->params);
 		$this->cache->flush();
 		return $this->cache->remember(
-			$key,
+			$this->params,
 			function() {
 				ob_start();
 				$this->renderBlock();

--
Gitblit v1.10.0