PHPackages                             daoandco/cakephp-cachecleaner - 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. daoandco/cakephp-cachecleaner

ActiveCakephp-plugin

daoandco/cakephp-cachecleaner
=============================

CacheCleaner plugin for CakePHP, this shell clean the cache of your application.

v2.0.1(6y ago)05861PHPPHP &gt;=5.4.16

Since Apr 15Pushed 6y ago2 watchersCompare

[ Source](https://github.com/DaoAndCo/cakephp-cachecleaner)[ Packagist](https://packagist.org/packages/daoandco/cakephp-cachecleaner)[ RSS](/packages/daoandco-cakephp-cachecleaner/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (1)

CacheCleaner plugin for CakePHP
===============================

[](#cachecleaner-plugin-for-cakephp)

This plugin is a shell that cleans the cache in your application

Requirements
------------

[](#requirements)

- PHP version 5.4.16 or higher
- CakePhp 3.0 or higher

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require daoandco/cakephp-cachecleaner

```

Loading the Plugin

```
  // In config/bootstrap.php
  Plugin::load('CacheCleaner', ['bootstrap' => true, 'routes' => false]);
```

Quick Start
-----------

[](#quick-start)

Clear all cache

```
bin/cake CacheCleaner.clear -a
```

Clear cake cache

```
bin/cake CacheCleaner.clear cake
```

Tasks
-----

[](#tasks)

### ORM

[](#orm)

It's the equivalent to `orm_cache clear`. See [more informations](http://book.cakephp.org/3.0/fr/console-and-shells/orm-cache.html)

```
bin/cake CacheCleaner.clear orm
```

### Cake

[](#cake)

Clear the cache generate by `Cake\Cache\Cache`

```
bin/cake CacheCleaner.clear cake
```

### Opcache

[](#opcache)

Resets the entire opcode cache, See [more informations](http://php.net/manual/fr/function.opcache-reset.php)

```
bin/cake CacheCleaner.clear opcache
```

### Dir

[](#dir)

Clear directories in "tmp/cache/"

- Clear all directories

```
bin/cake CacheCleaner.clear dir -a
```

- Clear one directory

```
bin/cake CacheCleaner.clear dir dir_name
```

- Clear many directories

```
bin/cake CacheCleaner.clear dir dir_name other_dir_name
```

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

[](#configuration)

### Create config file

[](#create-config-file)

Create a file in `app/config` like 'vendor/daoandco/cakephp-cachecleaner/config/config.php'

```
