Magento

Disable Magento Visitor Logs – For Better Performance

Disabling Magento Visitor Logs can’t possible from Admin. Disabling Visitor Logs helps in store performance as well as reduces sql queries while surfing the store which decreases MySQL Server load. It also causes Integrity Constraint Error sometimes.

So to disable Visitor logs you need rewrite a Core Model:

/app/code/core/Mage/Log/Model/Visitor.php – Mage_Log_Model_Visitor

Find the below coding in the visitor.php .
protected $_skipRequestLogging = false;

Replace the coding as below and save.
protected $_skipRequestLogging = true;

Save the File and Check your Visitor Log.

[box type=”info”] If you have a high traffic website it is suggested to disable Visitor logs to control the  increasing Database Size.[/box]

You Might Also Like

  • John Carlson

    I am running magento v 1.3.2.4 and this does not work, could you give me another option?

  • http://www.yireo.com/ Yireo

    We have developed a free extension specifically for this: Yireo_DisableLog module: http://www.yireo.com/software/magento-extensions/disablelog

  • Murugan

    Nice information, it disabled logging, improved my page load time – http://www.kartprice.com Any other info related to performance ?