{"id":1075,"date":"2013-03-16T16:44:34","date_gmt":"2013-03-16T16:44:34","guid":{"rendered":"http:\/\/invisiblezero.net\/?p=553"},"modified":"2013-03-16T16:44:34","modified_gmt":"2013-03-16T16:44:34","slug":"magento-optimize-your-webshop","status":"publish","type":"post","link":"http:\/\/ndthanh.com\/magento-optimize-your-webshop\/","title":{"rendered":"Magento – Optimize your webshop"},"content":{"rendered":"
<\/p>\n
Recently, i have many works that focus on Magento optimzation, that explains why i have many optimization related articles stay close to each other :D.<\/p>\n
Today i’ll introduce you another techniques belong to Magento itself, it means you can do it with only source code and admin dashboard. there’re two sections, first one is about configuration, and second one is about frontend. i hope you will enjoy it.<\/p>\n
<\/p>\n
Optimize Magento using configuration<\/strong><\/span><\/span><\/p>\n 1. Single Server Environment: 2.Multi Server Environment 3. Store sessions in memory Setup Memory-based filesystem for dynamic data (see point 8 above) or use memcached like multi server environment<\/p>\n Multi Server Environment<\/span><\/p>\n 4. Uninstall any extensions that you don\u2019t actually use.<\/p>\n Disable not needed extensions in app\/etc\/modules\/*.xml or delete<\/p>\n 5. Enable all Magento Caches: System -> Cache Management. Optimize magento Templating\/Frontend<\/strong><\/span><\/p>\n 1. Compress images * http:\/\/www.smush.it\/ 2. Minimize Javascript use 6. Use a Lazy Image Loader to load images on demand Recently, i have many works that focus on Magento optimzation, that explains why i have many optimization related articles stay close to each other :D. Today i’ll introduce you another techniques belong to Magento itself, it means you can do it with only source code and admin dashboard. there’re two sections, first one is about…<\/p>\n
\nUse APC as magento cache storage (app\/etc\/local.xml)<\/p>\n\n<global>\n...\n<cache>\n<backend>apc<\/backend>\n<prefix>mgt_<\/prefix>\n<\/cache>\n...\n<\/global>\n<\/pre>\n
\nUse memcached as central cache storage<\/p>\n\n<global>\n...\n<cache>\n<backend>memcached<\/backend><!-- apc \/ memcached \/ empty=file -->\n<memcached><!-- memcached cache backend related config -->\n<servers><!-- any number of server nodes can be included -->\n<server>\n<host><![CDATA[127.0.0.1]]<\/host>\n<port><![CDATA[11211]]<\/port>\n<persistent><![CDATA[1]]<\/persistent>\n<\/server>\n<\/servers>\n<compression><![CDATA[0]]<\/compression>\n<cache_dir><![CDATA[]]<\/cache_dir>\n<hashed_directory_level><![CDATA[]]<\/hashed_directory_level>\n<hashed_directory_umask><![CDATA[]]<\/hashed_directory_umask>\n<file_name_prefix><![CDATA[]]<\/file_name_prefix>\n<\/memcached>\n<\/cache>\n...\n<\/global>\n<\/pre>\n
\n Single Server Environment:<\/span><\/p>\n\n<global>\n...\n<session_save><![CDATA[memcache]]<\/session_save>\n<session_save_path><![CDATA[tcp:\/\/127.0.0.1:11211?persistent=0&weight=1&timeout=1&retry_interval=15]]<\/session_save_path>\n<session_cache_limiter><![CDATA[]]<\/session_cache_limiter>\n...\n<\/global>\n<\/pre>\n
\n6. Enable \u201cUse Flat Catalog Category\u201d and \u201cUse Flat Catalog Product\u201d to decrease database queries: System -> Configuration -> Catalog -> Catalog -> Frontend
\n7. Enable \u201cMerge JavaScript Files\u201d and \u201cMerge CSS Files\u201d to reduce the number of http requests
\n8. Use a Full Page Cache
\n9. Don\u2019t use layered navigationif you don\u2019t really need it, it needs a lot of resources
\n10. Limit the number of products on a product overview page.
\nSystem -> Configuration -> Catalog -> Catalog -> Frontend
\n11. Disable the Magento log
\nSystem -> Configuration -> Advanced -> Developer -> Log Settings (default is disabled)
\n12. Enable cron and log cleaning: System > Configuration > Advanced > System -> Log Cleaning<\/p>\n
\n
\nWe often think that the higher the image quality is, the better our blog\/site will look. Unfortunately, you are sacrificing a much more important feat \u2013 site\u2019s performance! Higher image quality means higher file size. Higher file size means it will take longer and slower to upload\/serve that file to a visitor.
\nRecommended services for image compression<\/p>\n
\n* http:\/\/www.jpegmini.com\/<\/p>\n
\n3. Specify Image dimensions.
\n4. Use Block cache and HTML output in your extensions.
\n5. Remove all blocks which you actually don\u2019t use\/need from layout xml
\nExample how to remove the poll from the right column<\/p>\n\n<layout version="0.1.0">\n\n<default>\n\n<reference name="right">\n\n<remove name="right.poll"\/>\n\n<\/reference>\n\n<\/default>\n\n<\/layout>\n\n<\/pre>\n
\n7. Use a lighweight template<\/p>\n","protected":false},"excerpt":{"rendered":"