Jake Vanderwerf
2026-08-28 a9654f00c8fbc9934289d761843ddd071025013f
inc/managers/CacheBack.php
@@ -1,6 +1,10 @@
<?php
namespace JVBase\managers;
use Redis;
use WP_Object_Cache;
use WP_Post;
if (!defined('ABSPATH')) {
   exit;
}
@@ -135,7 +139,7 @@
      return $value;
   }
   public function get(int|string|array $id): mixed
   public function get(int|string|array $id): bool
   {
      return false;
      if (is_array($id)) {
@@ -361,11 +365,11 @@
   /****************************************************
    * REDIS
    ****************************************************/
   private static function redis(): ?\Redis
   private static function redis(): ?Redis
   {
      global $wp_object_cache;
      return $wp_object_cache instanceof \WP_Object_Cache
      return $wp_object_cache instanceof WP_Object_Cache
      && isset($wp_object_cache->redis)
         ? $wp_object_cache->redis
         : null;
@@ -490,7 +494,7 @@
   /****************************************************
    * HOOKS - Posts
    ****************************************************/
   public static function onPostChange(int $postId, \WP_Post $post): void
   public static function onPostChange(int $postId, WP_Post $post): void
   {
      if (wp_is_post_revision($postId) || wp_is_post_autosave($postId)) {
         return;