| | |
| | | |
| | | 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; |
| | |
| | | if (JVB_TESTING) { |
| | | $this->cache->flush(); |
| | | } |
| | | $this->cache->connect('post', true); |
| | | |
| | | $this->action = 'dash-'; |
| | | $this->operation_type = 'content_update'; |
| | |
| | | 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 |
| | | // )); |
| | | } |
| | | |
| | | /** |
| | |
| | | unset($data['user']); |
| | | unset($data['id']); |
| | | |
| | | error_log('[CONTENT]:'.print_r($data, true)); |
| | | |
| | | $queue = JVB()->queue(); |
| | | $queue->queueOperation( |
| | | 'content_update', |
| | |
| | | |
| | | /** |
| | | * 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 |