Skip to content

Commit 132bb8b

Browse files
authored
Merge pull request #30 from lloricode/main
Add prefix for cache key
2 parents a67bcf0 + 98144ab commit 132bb8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WithRateLimiting.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function getRateLimitKey($method, $component = null)
2424

2525
$component ??= static::class;
2626

27-
return sha1($component.'|'.$method.'|'.request()->ip());
27+
return 'livewire-rate-limiter:'.sha1($component.'|'.$method.'|'.request()->ip());
2828
}
2929

3030
protected function hitRateLimiter($method = null, $decaySeconds = 60, $component = null)

0 commit comments

Comments
 (0)