true, 'reason' => 'clone_action']; } $dispatched = false; // Using the global helper function to dispatch the cache update // This matches the usage in test2.blade.php provided by the user if (function_exists('dispatchCacheBladeViews')) { dispatchCacheBladeViews([ [ 'view' => 'admin-ajax.request-ndt-no-cache', 'cache' => 'request-ndt' ], [ 'view' => 'admin-ajax.ndt-order.order-list-no-cache', 'cache' => 'ndt-order-list' ], [ 'view' => 'admin-ajax.repair-log-no-cache', 'cache' => 'repair-log' ], [ 'view' => 'admin-ajax.ndt-calculation-no-cache', 'cache' => 'ndt-calculation' ] ]); $dispatched = true; Log::info('NdtCalculationCacheTrigger: Cache update dispatched', [ 'weld_log_id' => $weldLogData->id, 'iso' => $weldLogData->iso_number ?? 'unknown' ]); } else { Log::warning('NdtCalculationCacheTrigger: dispatchCacheBladeViews function not found'); } return [ 'cache_dispatched' => $dispatched ]; } /** * Allow async execution since this is just dispatching another job */ public function isAsync(): bool { return true; } }