Steps to optimize your Magento website by disabling visitor log

Steps to optimize your Magento website by disabling visitor log

Steps to optimize your Magento website by disabling visitor log

Have you used up a database of Magento? When you are supposed to use a bulk database of Magento it will impact the website performance. One input from your end to bring back website performance by disabling Magento visitor login. Let us see other options to speed up the website. Magento is said to be the best system of login forever. It sets up the database to enter all the activities of user logs. This maintenance helps for the website proprietor to check on user’s activity and performance at all stages.

How log details are stored in Magento?

Magento stores the logging details in module name called “Mage_Log”. The user’s login details stored in Magento such as first time visitor, last time visitor, IP address of the visitor, and live users etc. There is no relevant mark like the size of the database fixes in one point. It gradually grows while adding up the visitor login details. There is also a chance to come up with the issue of disk space and reduced the performance level of the website.

Our main priority is to configure website performance first rather than collecting user login database. So, kindly disable the Magento login. Again, here comes the next problem when you disable login of Magento. Yes! It results in a comparison of a product that doesn’t help you. If you are the user of Google Analytics then disable Magento login system.

How to disable visitor login?

Step 1:
In Magento admin panel go to “system” and then choose “configuration”. Choose the option “advanced” after clicking on the configuration.

Step 2: The advanced option will show you another feature “System”. Tap on the system and then choose log.

Step 3: Here’s the choice to disable or enable the Magento visitor login as per your choice.

Note: This is one type of method to disable login system in Magento

Method 1: Use the file “Local Configuration” to disable login:

Go to the file “configuration” by following up the path: app/etc/local.xml

You need to add below code before </config>.

After adding up the code, you can follow the firstly mentioned step to disable Magento login. Go to system and then configuration to choose advanced. You are not about to stop here so, work on flushing cache of Magento.

From the admin panel of Magento, go to system and then cache management. Hereafter, it stops writing on the log tables. There is another responsibility for you to erase all the previous log in details right? So, do it by truncating log tables.

TRUNCATE log_customer;
TRUNCATE log_visitor;
It’s easy by truncating log details not only in Magento but also in phpMyadmin.

Note: Make sure that truncating log details won’t be visible again. It will be lost completely!

Method 2: Extensions of Magento:

Using the extension called “DisableLog”, you can disable login. You can also disable search bots and insert/update request. It gradually improves website performance when you disable all those queries. By setting the parameter of the DisableLog extension to yes it will disable the entire user login.

Method 3: Cored model modification:

Very simple! Just edit the core model of Mage_Log. Go to the file pathway /app/code/local/Mage/Log/Model/Visitor.php and add the below code:

protected $_skipRequestLogging = true;
We don’t recommend modifying the core model in all cases. But before modifying the core model, kindly take the backup.

Method 4: Log rotation enablement:

Here, you can use shell utility log.php for disabling Magento logs. Based upon the log size, it differs the time variation. So, don’t urge for the situation to complete immediately. If you have a low amount of log details it will take less time or else it takes more time.

To run the below-mentioned code, you must need SSH access. We recommend the automatic clean system for Magento logs. The entries will be more but the database remains the same after running up the code.

php -f shell/log.php clean
Here’s the step to use the automatic clean system for Magento logs:

Step 1:
In your admin panel of Magento, go to system and then configuration. Choose the option “advanced” and then the system again. Here is the option called “Log cleaning”.

Step 2: Change the parameter of Log cleaning as Yes. Set the day count as one or two days and then save it.

Step 3: Tap on the button "save config".

Over! We have recommended using four methods for disabling Magento logs. By doing this, you can improve the website performance by disabling Magento logs. You will get good happenings!
First release
Last update
0.00 star(s) 0 ratings