klaushaidinger.com

Icon

Increase Magento Speed with simple tricks

Here are some basic steps to optimize the Performance of Magento.

Enable js / css compression

System > Configuration > Developer > JavaScript Settings

Start Compiler

Once you have located the JavaScript and CSS Settings menu option simply set them to “Yes” and that’s it. Simple right.

Magento Compiler is a module that compiles PHP files that are usually located in different locations and moves them into one single file, which in simpler terms means that they are executed a lot faster because they are all in one place.

To find the Magento Compiler simple go to System > Tools > Compilation and once you’ve found it simply click on Run Compilation Process in the top right hand corner and you’re done.

Uncomment following lines in .htaccess

############################################

## enable resulting html compression
php_flag zlib.output_compression on

############################################

Add following lines to .htaccess

############################################

## compress text, html, javascript, css, xml:

AddOutputFilterByType DEFLATE text/plain

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/xml

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE application/xml

AddOutputFilterByType DEFLATE application/xhtml+xml

AddOutputFilterByType DEFLATE application/rss+xml

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

# Or, compress certain file types by extension:

<files *.html>

SetOutputFilter DEFLATE

</files>

###########################################

############################################

##

<IfModule mod_expires.c>

# Enable expirations

ExpiresActive On

# Default directive

ExpiresDefault „access plus 1 month“

# My favicon

ExpiresByType image/x-icon „access plus 1 year?

# Images

ExpiresByType image/gif „access plus 1 month“

ExpiresByType image/png „access plus 1 month“

ExpiresByType image/jpg „access plus 1 month“

ExpiresByType image/jpeg „access plus 1 month“

# CSS

ExpiresByType text/css „access 1 month?

# Javascript

ExpiresByType application/javascript „access plus 1 year“

</IfModule>

############################################

Category: Microsoft Windows

Tagged:

Comments are closed.