Coming up: 22 Sep - Vue Storefront 1 Advanced training

Yireo - Trainings & extensions

Open main menu

Save a couple of SQL-queries per Magento request

Magento has the feature of logging every request to its database, giving you insight into your visitors behaviour. But this is also including search-engines and if you are using a tool like Google Analytics, this logging is pointless. Learn how to disable it.

Disable Mage_Log?

Within the Magento System Configuration under the Advanced tab, you have the option to disable the output of various Magento modules. Many Magento users think this actually disables the module. It does not. It only disables the output of that module. Logging is not considered output.

The proper way to disable the Mage_Log module would be to locate its XML-definition in the folder app/etc/modules and set the flag active to false. If you do that, your Magento site will crash. So don't do that. It doesn't work.

Disable logging in the Developer section?

Within the Magento System Configuration under the Developer tab, there is also an option to disable logging. While it is a bit confusing, this is an entirely different type of logging: This logging is ment for developers, so debugging usage, while the logging we refer to in this blog is the logging of visitor-data for statistical usage. The two are not related.

The solution: Our DisableLog extension

The only real solution is to modify the Magento core. But instead of you hacking into the core, you can simply use our extension to do all the hard work for you: Our DisableLog extension allows you to quickly disable logging. And you have the choice. You can disable logging for all your visitors (if you are using Google Analytics or Piwik or something alike) or for just search-engines (if you don't want search-engines to flood your statistics).

Hope you find this useful.

Posted on 9 June 2013

Looking for a training in-house?

Let's get to it!

Do not miss out on what we say

This will be the most interesting spam you've ever read

We don't write too commercial stuff, we focus on the technology (which we love) and we regularly come up with innovative solutions. Via our newsletter, you can keep yourself up to date on all of this coolness. Subscribing only takes seconds.

Sign up for the Yireo newsletter


Legal information

Other Yireo sites

Get Social

About Yireo