diff --git a/config/pulse.php b/config/pulse.php index a52f5c31..81675ae1 100644 --- a/config/pulse.php +++ b/config/pulse.php @@ -1,6 +1,7 @@ env('PULSE_CACHE_INTERACTIONS_ENABLED', true), 'sample_rate' => env('PULSE_CACHE_INTERACTIONS_SAMPLE_RATE', 1), 'ignore' => [ - '/^laravel:pulse:/', // Internal Pulse keys... - '/^illuminate:/', // Internal Laravel keys... - '/^telescope:/', // Internal Telescope keys... - '/^nova/', // Internal Nova keys... - '/^.+@.+\|(?:(?:\d+\.\d+\.\d+\.\d+)|[0-9a-fA-F:]+)(?::timer)?$/', // Breeze / Jetstream authentication rate limiting... - '/^[a-zA-Z0-9]{40}$/', // Session IDs... + ...Pulse::vendorCacheKeys(), ], 'groups' => [ '/^job-exceptions:.*/' => 'job-exceptions:*', diff --git a/src/Pulse.php b/src/Pulse.php index f49aa130..0bf0440f 100644 --- a/src/Pulse.php +++ b/src/Pulse.php @@ -491,6 +491,22 @@ public function js(): string return "".PHP_EOL; } + /** + * The default "vendor" cache keys that should be ignored by Pulse. + */ + public static function vendorCacheKeys(): array + { + return [ + '/(^laravel_vapor_job_attemp(t?)s:)/', // Laravel Vapor keys... + '/^.+@.+\|(?:(?:\d+\.\d+\.\d+\.\d+)|[0-9a-fA-F:]+)(?::timer)?$/', // Breeze / Jetstream keys... + '/^[a-zA-Z0-9]{40}$/', // Session IDs... + '/^illuminate:/', // Laravel keys... + '/^laravel:pulse:/', // Pulse keys... + '/^nova/', // Nova keys... + '/^telescope:/', // Telescope keys... + ]; + } + /** * Determine if Pulse may register routes. */