From 8c6502de2f8ec2bd8382cd6945c327d7be400e14 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 28 Jan 2026 05:34:41 +0000
Subject: [PATCH] =Queue cleanup - seems to be working enough to get legacy before and after going!

---
 inc/rest/routes/ContentRoutes.php |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/inc/rest/routes/ContentRoutes.php b/inc/rest/routes/ContentRoutes.php
index 46c7d45..fb53392 100644
--- a/inc/rest/routes/ContentRoutes.php
+++ b/inc/rest/routes/ContentRoutes.php
@@ -4,6 +4,7 @@
 
 use JVBase\JVB;
 use JVBase\managers\queue\executors\ContentExecutor;
+use JVBase\managers\queue\Storage;
 use JVBase\managers\queue\TypeConfig;
 use JVBase\rest\RestRouteManager;
 use JVBase\managers\Cache;
@@ -39,6 +40,7 @@
 		if (JVB_TESTING) {
 			$this->cache->flush();
 		}
+		$this->cache->connect('post', true);
 
 		$this->action = 'dash-';
 		$this->operation_type = 'content_update';
@@ -60,10 +62,10 @@
 			chunkSize: 10
 		));
 
-		// Batch creation (from uploads)
-		$registry->register('batch_creation', new TypeConfig(
-			executor: $executor
-		));
+		// Batch creation (from uploads) TODO: I believe this is all handled by UploadExecutor
+//		$registry->register('batch_creation', new TypeConfig(
+//			executor: $executor
+//		));
 	}
 
 	/**
@@ -187,6 +189,8 @@
 		unset($data['user']);
 		unset($data['id']);
 
+		error_log('[CONTENT]:'.print_r($data, true));
+
 		$queue = JVB()->queue();
 		$queue->queueOperation(
 			'content_update',
@@ -1091,6 +1095,7 @@
 
 	/**
 	 * Processes operation from Operation Queue
+	 * @deprecated We process Queue through ContentExecutor.php, setup in registerContentExecutors())
 	 * @param WP_Error|array $result
 	 * @param object $operation
 	 * @param array $data

--
Gitblit v1.10.0