Skip to content

Commit

Permalink
Merge pull request #30 from lloricode/main
Browse files Browse the repository at this point in the history
Add prefix for cache key
  • Loading branch information
danharrin authored Nov 24, 2024
2 parents a67bcf0 + 98144ab commit 132bb8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WithRateLimiting.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function getRateLimitKey($method, $component = null)

$component ??= static::class;

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

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

0 comments on commit 132bb8b

Please sign in to comment.