Skip to content

Commit 29a90d3

Browse files
authored
Merge pull request #211 from imunew/fix/never_forget_cooldown_seconds
Fix never forget cooldown seconds in checkCooldownAndRemoveIfExpired.
2 parents e70754a + b9b98b8 commit 29a90d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Caching.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ protected function checkCooldownAndRemoveIfExpired(Model $instance)
138138

139139
$instance
140140
->cache()
141-
->forget("{$cachePrefix}:{$modelClassName}-cooldown:invalidated-at");
141+
->forget("{$cachePrefix}:{$modelClassName}-cooldown:seconds");
142142
$instance
143143
->cache()
144144
->forget("{$cachePrefix}:{$modelClassName}-cooldown:invalidated-at");

0 commit comments

Comments
 (0)