Cache Commands

cache:clean

Clean magento cache

Cleans expired cache entries. If you like to remove all entries use cache:flush Or only one cache type like i.e. full_page cache:

$ n98-magerun.phar cache:clean full_page

Usage:

$ n98-magerun.phar cache:clean [type]

Arguments

type

Is required:
No
Is array:
No
Description:
Cache type code like "config"
Default:
n/a

Options

–help

Description:
Display this help message.
Shortcut:
-h
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–quiet

Description:
Do not output any message.
Shortcut:
-q
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–verbose

Description:
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Shortcut:
-v|-vv|-vvv
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–version

Description:
Display this application version.
Shortcut:
-V
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–ansi

Description:
Force ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-ansi

Description:
Disable ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-interaction

Description:
Do not ask any interactive question.
Shortcut:
-n
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–root-dir

Description:
Force magento root dir. No auto detection

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

cache:disable

Disables magento caches

Usage:

$ n98-magerun.phar cache:disable

Options

–help

Description:
Display this help message.
Shortcut:
-h
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–quiet

Description:
Do not output any message.
Shortcut:
-q
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–verbose

Description:
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Shortcut:
-v|-vv|-vvv
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–version

Description:
Display this application version.
Shortcut:
-V
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–ansi

Description:
Force ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-ansi

Description:
Disable ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-interaction

Description:
Do not ask any interactive question.
Shortcut:
-n
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–root-dir

Description:
Force magento root dir. No auto detection

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

cache:enable

Enables magento caches

Usage:

$ n98-magerun.phar cache:enable

Options

–help

Description:
Display this help message.
Shortcut:
-h
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–quiet

Description:
Do not output any message.
Shortcut:
-q
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–verbose

Description:
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Shortcut:
-v|-vv|-vvv
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–version

Description:
Display this application version.
Shortcut:
-V
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–ansi

Description:
Force ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-ansi

Description:
Disable ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-interaction

Description:
Do not ask any interactive question.
Shortcut:
-n
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–root-dir

Description:
Force magento root dir. No auto detection

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

cache:flush

Flush magento cache storage

Usage:

$ n98-magerun.phar cache:flush

Options

–help

Description:
Display this help message.
Shortcut:
-h
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–quiet

Description:
Do not output any message.
Shortcut:
-q
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–verbose

Description:
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Shortcut:
-v|-vv|-vvv
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–version

Description:
Display this application version.
Shortcut:
-V
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–ansi

Description:
Force ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-ansi

Description:
Disable ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-interaction

Description:
Do not ask any interactive question.
Shortcut:
-n
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–root-dir

Description:
Force magento root dir. No auto detection

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

cache:list

Lists all magento caches

Usage:

$ n98-magerun.phar cache:list

Options

–help

Description:
Display this help message.
Shortcut:
-h
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–quiet

Description:
Do not output any message.
Shortcut:
-q
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–verbose

Description:
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Shortcut:
-v|-vv|-vvv
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–version

Description:
Display this application version.
Shortcut:
-V
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–ansi

Description:
Force ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-ansi

Description:
Disable ANSI output.

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–no-interaction

Description:
Do not ask any interactive question.
Shortcut:
-n
Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a

–root-dir

Description:
Force magento root dir. No auto detection

Shortcut:

Accept value:
No
Is value required:
No
Is multiple:
No
Default:
n/a