How to Speed Up Magento – Real Quick Guide

It seems that I’m constantly needing to speed up Magento for different clients and its so time consuming to go through all of the tutorials and suggestions.

I’m going to break it down in the fastest way possible and leave out anything that takes more than 5 minutes, feel free to skip steps.

This GUIDE is the REAL quick way of doing it. I bare no responsibility for how your magento functions after! It should be fine.

Magento 1.5.1+

Step 1. Combining CSS/JS

To turn this on, go in the Magento Admin Panel to “System” > “Configuration”, from the left navigation panel, click on “Developer” link from the “Advance” panel (all the way at the bottom). Look for the two tabs “Javascript Settings” and “CSS Settings” and you want to select “Yes” for the Merge files options in both.

Step 2. Enable GZIP


## enable apache served files compression

# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don’t compress images
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary

Remove #

# enable resulting html compression
php_flag zlib.output_compression on

Step 3.Fix MYSQL Caching


key_buffer = 512M
max_allowed_packet = 64M
table_cache = 512
sort_buffer_size = 4m
read_buffer_size = 4m
read_rnd_buffer_size = 2m
myisam_sort_buffer_size = 64m
tmp_table_size = 128m
query_cache_size = 96m
query_cache_type = 1
thread_cache_size = 8
max_connections = 400
wait_timeout = 300

Step 4. Fix File Caching


Change files to db or xcache memcache apc


Step 5. Keep Alives On


KeepAlive on

Step 5. Turn Logging Off

In the Magento Admin Panel go to “System” > “Configuration”, from the left panel choose “Advanced” from the “Advanced” Panel at the bottom left. Look for the module “Mage_Log” and set it to ‘disable’ and save.

More Information

Sources: Blasted Thing | Activo | Webpage Speed Test | Great Magento Templates

Posted in Tips & Code

7 ResponsesComments Feed

  1. Thanks admin for your nice info for speed up Magento! I just think you share right thought in your opinion.

    06/15/11, 11:18 am
  2. relax

    Thanks a lot, this was really helpful and quick!

    06/15/11, 2:20 pm
  3. Great article.
    Speeding up Magento is a sorted after request.


    06/16/11, 12:11 am
  4. simon

    Thanks for the guide.
    One question: where ist the /etc/my.cnf file? in public_html or in magento folder? have no such file.


    10/20/11, 4:15 pm
  5. First, thank you for the info, and your point of view. I could enjoy this weblog and especially this.

    At this point, I feel I fritter away far too much time on the web, analyzing
    junk, generally. This is a refreshing change from what I’ve
    known. Still, I believe reading other people’s ideas is a valuable investiture of
    at any rate some of my regular measure of time in my timetable.
    It’s just like sifting throughout the junk heap to
    obtain the wheat. Or maybe, whatever analogy performs best for you.
    Still, near the home pc is most likely as bad for you as cigarettes and fried

    08/30/19, 9:46 am
  6. Upon reflection, I felt like your post is and not keeping your head stuck in the phone the
    whole while, either) and living a life with appreciation for the
    natural world, keeps people feeling sane and feeling joyous.

    Considering key subjects is likewise an experience that
    can assist us to know ourselves.

    01/27/20, 4:01 am
  7. Exceptional post however Ӏ ᴡas wanting tο ҝnoѡ іf you couⅼd write a litte more on this subject?
    Ι’d Ƅe verу thankful if you coսld elaborate a lіttle bitt mοre.
    Thank you!

    Woujld Yoᥙ Feel free to surf tߋ my webpage; Agen Togel

    01/29/21, 8:42 am

Leave a Reply

Your email address will not be published. Required fields are marked *

anti fatigue mats