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
@@ -57,7 +57,7 @@ class StopVmJob implements ShouldQueue
if (is_array($result) && isset($result['error']) && $result['error'] === false) {
// 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(