Clean cache keys when you insert, update or delete some records of your database.
You can install the package via composer:
composer require giacomomasseron/laravel-cache-when-db
You can publish the config file with:
php artisan vendor:publish --tag="laravel-cache-when-db"
This is the contents of the published config file:
/*
|--------------------------------------------------------------------------
| Cache keys
|--------------------------------------------------------------------------
|
| Define Cache keys to clean when one of the tables of the array changes
| [
| 'cache_key' => [
| 'database_table',
| 'database_table',
| ],
|
*/
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.