Jake Vanderwerf
2026-02-07 8b82035f3f8be1462a7125ad7eafb990ca17fa94
inc/managers/queue/Storage.php
@@ -138,6 +138,9 @@
         return false;
      }
      Cache::invalidateGroup('queue');
//    $this->invalidateUser($op->userId);
      return true;
   }
@@ -172,7 +175,6 @@
      ];
      $updated = $wpdb->update($table, $data, $where);
      $this->invalidateQueueCache();
      if ($updated === 0) {
         return true;
@@ -182,6 +184,9 @@
         error_log('[Storage::saveFinal] DB error: ' . $wpdb->last_error);
         return false;
      }
      Cache::invalidateGroup('queue');
//    $this->invalidateQueueCache();
//    $this->invalidateUser($op->userId);
      return true;
   }
@@ -214,7 +219,8 @@
      ]);
      if ($result) {
         $this->invalidateUser($op->userId);
//       $this->invalidateUser($op->userId);
         Cache::invalidateGroup('queue');
      }
      return $result !== false;
@@ -239,6 +245,8 @@
         $type, $userId
      ));
      $this->invalidateUser($userId);
      return $row ? $this->rowToOperation($row) : null;
   }
@@ -443,6 +451,7 @@
   private function invalidateUser(int $userId): void
   {
      $this->cache->forget($userId);
      Cache::touch($userId);
   }
   public function getLastError(): string
   {