refactor: implement centralized cache key management and add utility traits for vCenter SSH operations.
This commit is contained in:
@@ -75,7 +75,7 @@ class WaitStatusVirtualMachine implements ShouldQueue
|
||||
|
||||
// Action Completed
|
||||
// 1. Clear Cache again (to ensure next fetch gets new state)
|
||||
\Illuminate\Support\Facades\Cache::forget('vm_info_' . $this->vmware_id);
|
||||
\Illuminate\Support\Facades\Cache::forget(\App\Support\Cache\CacheKey::build('vm', 'info', ['id' => $this->vmware_id]));
|
||||
|
||||
// 2. Update DB Status and Dispatch Event
|
||||
$product = \App\Models\ModuleVmware::where('vmware_id', $this->vmware_id)->first();
|
||||
|
||||
Reference in New Issue
Block a user