From b300e2d900b0affa8d95e697925e6053fdd884b0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 7 Mar 2023 19:03:27 +1100 Subject: [PATCH] Set TTL on cache --- src/Collector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collector.php b/src/Collector.php index c704e9a..d60a8df 100644 --- a/src/Collector.php +++ b/src/Collector.php @@ -72,7 +72,7 @@ public function batch() if(!config('beacon.enabled') || empty(config('beacon.api_key'))) return; - Cache::put(config('beacon.cache_key') . $this->metric->type.microtime(true), $this->metric); + Cache::put(config('beacon.cache_key') . $this->metric->type.microtime(true), $this->metric, 1800); } }