I’m trying to simply drop a key from the cache that RateLimiter
saves.
// fail 1
Cache::forget($rateLimiterCacheKey); // false
// fail 2
Cache::getStore()->forget($rateLimiterCacheKey); // false
// fail 3
$cacheManager = app('cache');
$cacheManager->store()->forget($rateLimiterCacheKey); // false
// works:
Artisan::call('cache:forget', [$rateLimiterCacheKey]); // true (default `ForgetCommand.php` console command)
Is there anyone out there able to me how to clear the rate limiter cache without using artisan?