Book Image

Instant Magento Performance Optimization How-to

By : Nayrolles Mathieu (USD), Mathieu Nayrolles
Book Image

Instant Magento Performance Optimization How-to

By: Nayrolles Mathieu (USD), Mathieu Nayrolles

Overview of this book

The optimization of an attractive commercial website is a non-trivial task that demands time and knowledge. Optimization is a critical point for all growing businesses because a misconfiguration could make you lose money, a lot of money. If your server is overloaded, a browser that wants to turn into a buyer will not be able to, and you will lose customers. "Instant Magento Performance Optimization How-To" is a practical, hands-on guide that provides you with a number of clear, step-by-step exercises to help you reach a high performance level for your Magento stores and keep your customers satisfied.This book looks at tweaks and tips used to boost your Magento Performance, and breaks down the confusion that surrounds the subject.You will learn how to compress your pages, styles, and scripts by almost 80%. We will also take a look at controversial optimization settings such as Magento core compilation or enabling all caching systems. You will discover new applications that improve performance. If you wish your e-businesses to grow and want to keep your customers satisfied, you definitely need this book.
Table of Contents (7 chapters)

Logging files (Must know)

For every move of your customer, Magento will write a line in specific files. It's not rocket science to assume that this logging process slows it down.

How to do it...

To turn off your logging system, you have to open your Magento backend and go to System | Configuration | Advanced | Developer | Log Settings.

Turn off the option and save your settings. The following table shows the data with the log turned off:



Load time


Overall (before)


2.58 seconds

724.3 KB

Overall (after)


2.50 seconds

724.3 KB

The difference is negligible on a non-stressed server, but we have to assume that with the increase in the load on the server, this option will be more effective.

How it works...

The log files are located in {{base_dir}}/var/log and are divided into two pieces. The first one is the system log file and the second one is the exception log file. Although this file can be useful for debugging and monitoring your Magento website, the operation to write it in the hard drive slows down other operations such as retrieving information for clients.