From b38f03c0e7218762d90fa5092696b127f24f36db Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 25 Jan 2026 07:07:26 +0000
Subject: [PATCH] =Some logical flaws in Queue.php, Queue.js, ContentExecutor.php, UploadExecutor.php - particularly with timeline ordering, frontend queue updates, etc

---
 inc/rest/routes/ReferralRoutes.php |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/inc/rest/routes/ReferralRoutes.php b/inc/rest/routes/ReferralRoutes.php
index fd0627b..6f920c8 100644
--- a/inc/rest/routes/ReferralRoutes.php
+++ b/inc/rest/routes/ReferralRoutes.php
@@ -312,7 +312,7 @@
 			}
 		}
 
-		$this->cache->clear();
+		$this->cache->flush();
 
 		return $this->success(['message' => "Referral marked as {$status}"]);
 	}
@@ -348,7 +348,7 @@
 		}
 
 		$this->wpdb->delete($this->referrals_table, ['id' => $referral_id], ['%d']);
-		$this->cache->clear();
+		$this->cache->flush();
 
 		return $this->success(['message' => 'Referral removed']);
 	}
@@ -508,7 +508,7 @@
 		];
 
 		update_option(BASE . 'referral_settings', $settings);
-		$this->cache->clear();
+		$this->cache->flush();
 
 		return $this->success([
 			'message' => 'Settings updated',
@@ -638,7 +638,7 @@
 			$data['message']
 		);
 		if ($result['success']) {
-			$this->cache->clear();
+			$this->cache->flush();
 		}
 
 		// Build summary message
@@ -735,7 +735,7 @@
 		}
 
 		// Clear cache
-		$this->cache->clear();
+		$this->cache->flush();
 
 		return new WP_REST_Response([
 			'success' => true,
@@ -805,7 +805,7 @@
 		}
 
 		// Clear cache
-		$this->cache->clear();
+		$this->cache->flush();
 
 		return new WP_REST_Response([
 			'success' => true,

--
Gitblit v1.10.0