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); }