PHPackages                             mmic/platform-cache-scrubber - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. mmic/platform-cache-scrubber

ActivePlatform-extension[Caching](/categories/caching)

mmic/platform-cache-scrubber
============================

Clears Laravel and Platform caches, on-demand

v2.0.0(8y ago)1225GPLv3PHPPHP &gt;=5.6.4

Since Jul 14Pushed 8y ago3 watchersCompare

[ Source](https://github.com/MedicalMutual/platform-cache-scrubber)[ Packagist](https://packagist.org/packages/mmic/platform-cache-scrubber)[ RSS](/packages/mmic-platform-cache-scrubber/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

Cache Scrubber Extension for Cartalyst Platform
===============================================

[](#cache-scrubber-extension-for-cartalyst-platform)

Modern frameworks utilize caching extensively, which can lead to unexpected behavior during routine development activities.

Laravel includes an Artisan command that clears the "application cache", but there are several other caches, some of which are specific to Laravel, and some of which are specific to Platform, that are not cleared.

This simple extension adds a new Artisan command, `cache:scrub`, which empties any number of caches that are defined in the extension's configuration file.

Installation
------------

[](#installation)

Run the following terminal command, from within the project root:

```
composer require mmic/platform-cache-scrubber

```

Next, log into Platform, navigate to Operations -&gt; Extensions, locate the `Cache Scrubber` extension, and click `Install` (at top right), and then click `Enable` (also at top right).

Finally, publish the configuration file:

```
php artisan vendor:publish

```

The configuration file is published to the following location, relative to the project root:

`config/mmic.cache-scrubber.paths.php`

Usage
-----

[](#usage)

To clear all caches, simply issue the following command on the terminal, from within the project root:

```
php artisan cache:scrub

```

Configuration
-------------

[](#configuration)

Adding a new/custom cache is as easy as editing the configuration file, `config/mmic.cache-scrubber.paths.php`.

All of Laravel and Platform's caches are configured to be cleared, by default:

```
