How to control Magento compiler from the command line

Magento Compiler feature should be disabled on any changes in loaded Magento classes, in other words, you need to disable Magento Compilation every time before installing new extension or initiating upgrade/downgrade/installation or removal of any Magento module.

To disable Magento Compiler you can use one of the following methods:

1. Admin Interface

Navigate to System > Tools > Compilation page and click on Disable button:

magento_compiler2. Command line

· Check the current compilation status

$ php -f shell/compiler.php -- state
Compiler Status:          Disabled
Compilation State:        Compiled
Collected Files Count:    6959
Compiled Scopes Count:    4

· Disable Magento compiler

php -f shell/compiler.php -- disable
Compiler include path disabled

· Clear current Magento compilation

php -f shell/compiler.php -- clear
Compilation successfully cleared
Advertisements

One thought on “How to control Magento compiler from the command line

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s