From ccf5e61a075c35d24befc175994b5cb8957ca322 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 26 Aug 2026 21:45:53 +0000
Subject: [PATCH] =Extra JVB() calls replaced, minor tweaks

---
 inc/forms/PostSelector.php |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/inc/forms/PostSelector.php b/inc/forms/PostSelector.php
index f6f564f..c68191d 100644
--- a/inc/forms/PostSelector.php
+++ b/inc/forms/PostSelector.php
@@ -185,8 +185,8 @@
 		}
 
 		// Check cache
-		$cache_key = $this->cache->generateKey($args);
-		$cached_result = $this->cache->get($cache_key);
+
+		$cached_result = $this->cache->get($args);
 		if ($cached_result) {
 			return new WP_REST_Response($cached_result);
 		}
@@ -224,7 +224,7 @@
 		];
 
 		// Cache the result
-		$this->cache->set($cache_key, $result, 300); // 5 minute cache
+		$this->cache->set($args, $result, 300); // 5 minute cache
 
 		return new WP_REST_Response($result);
 	}

--
Gitblit v1.10.0