Skip to content

Commit

Permalink
Set TTL on cache
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Mar 7, 2023
1 parent 911eab1 commit b300e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

}
}

0 comments on commit b300e2d

Please sign in to comment.