Deactivate Magento Visitor Logs

Posted on December 22, 2012 by Nimrod Techn There have been 0 comments

Magento can be a beast. Every time a potential customer visits the website, several SQL queries run to log his details in the DB.
Not only that this is unnecessary (most of the details, except for the IP, are tracked by Google Analytics anyway), this could be a serious performance issue.

How to deactivate?

Copy /app/code/core/Mage/Log/Model/Visitor.php

To: /app/code/local/Mage/Log/Model/Visitor.php


Change the 4th line:

protected $_skipRequestLogging = false;


protected $_skipRequestLogging = true;

This post was posted in Speeding Up your Magento Website

Magento is a well-engineered eCommerce platform designed to help engineers develop customized eCommerce online stores. Due to lack of proper coding documentation, was created with the sole purpose of instructing Magento developers to-be with the "how-to-do" know-how. In the event of unresolved issues, you are more than welcome to contact me for consultation. However, please do so only if you possess a Software Engineering background and you're able to specify your question.