How to disable cache in Laravel 8 for localserver? Its creating too much cache files. Its taking too much time to reflect changes.
How to disable cache in Laravel 8 for localserver? Its creating too much cache files. Its taking too much time to reflect changes.
To disable the cache you have to add the following to your config/cache.php file.
'stores' => [
//...
'none' => [
'driver' => 'null',
],
],
Now you have to change your CACHE_DRIVER value to none in your .env file and your cache is disabled.
You can do multiple things like:
CACHE_DRIVER=none
CACHE_EXPIRE=-1
and a command to clear view cache:
php artisan view:clear