Home > Software engineering >  How to clear query caching in laravel?
How to clear query caching in laravel?

Time:12-07

I tried all caching commands to clear a query that cached for a while but there is no result. so what are the clearing caching commands should I use

CodePudding user response:

There is a hidden command you can also try

cache:forget file

beside these commands

php artisan config:cache

php artisan view:cache

php artisan route:cache

CodePudding user response:

There is not much details in what cache specifically you are trying to clear. Have you tried the following?

php artisan config:cache
php artisan view:cache
php artisan route:cache

If you want to remove an item from the cache, you may also use the following instruction at the appropriate place like a controller: Cache::forget('key');

  • Related