refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.

This commit is contained in:
pbao9
2026-05-16 16:52:21 +07:00
parent 06dbd54ecd
commit 8a115c5175
36 changed files with 1694 additions and 517 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class StartVmJob implements ShouldQueue
Log::info("StartVmJob: Command sent successfully for VM {$product->vmware_id}");
// Clear VM info cache
\Illuminate\Support\Facades\Cache::forget('vm_info_' . $product->vmware_id);
\Illuminate\Support\Facades\Cache::forget(\App\Support\Cache\CacheKey::build('vm', 'info', ['id' => $product->vmware_id]));
// Dispatch Event to Frontend
\App\Events\VirtualMachineStatusChanged::dispatch(