refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user