tobya / clearallcache
Clears more than just default Cache driver
Fund package maintenance!
Requires
- php: ^8.0
- illuminate/contracts: ^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
README
Most applications use a single cache, we can decide between database, file, redis and many more,
however, some applications require multiple caches to function correctly. If you simply run cache:clear you
will clear the default cache but not any others which can cause confusion in development and problems in production.
cache:clearall will clear all your caches stores that you are using.
Installation
You can install the package via composer:
composer require tobya/clearallcache
Usage
add additional caches that are in use and should be cleared to /config/cache.php
'stores_in_use' => ['file','database'],
Then call command
php artisan cache:clearall
This will first call cache:clear clearing the default cache and then clear any cache stores listed in the stores_in_use
key in your cache.php config file.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.