laravel/framework — pull request #4132 by ceejayoz (2014-04-15 17:19:10+00:00)
Title: fire an event on cache clear

In some situations, users may store certain cache-style data in a more custom manner than the Cache functions permit. For example, we store most cache data in Redis, but have a few larger cacheable items (rendered, minified CSS) that would incur high levels of unnecessary network traffic from the Redis server if stored there. For these larger items, we manually store to the db and/or the filesystem.

Adding a `cache:clear` event to `php artisan cache:clear` allows these a cache clearing to be hooked into via an event for additional custom processing.