From 94de71140be2d0c80bf6a2e03cb9381b37736ed5 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 06 Feb 2026 17:03:02 +0000
Subject: [PATCH] =Some minor CRUD.js and UploadManager.js tweaks
---
inc/managers/queue/Storage.php | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/inc/managers/queue/Storage.php b/inc/managers/queue/Storage.php
index 99cd8c3..e4a5397 100644
--- a/inc/managers/queue/Storage.php
+++ b/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
{
--
Gitblit v1.10.0