tobya/clearallcache

Clears more than just default Cache driver

Maintainers

Package info

github.com/tobya/ClearAllCache

Homepage

pkg:composer/tobya/clearallcache

Transparency log

Fund package maintenance!

tobya

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 3

v0.3 2026-07-30 07:00 UTC

This package is auto-updated.

Last update: 2026-07-30 07:11:51 UTC


README

Latest Version on Packagist Total Downloads

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.