magento 性能优化

前言:      Magento 是一个开源电子商务系统,尤其以扩展性高著称,但是很高的扩展性往往是牺牲了速度为代价的,虽然现在magento为速度提升做了很多工作,但是还是没能达到人们对速度的要求。既然如此还是很自然的选择了它,它的速度让很多客户无法接受,最近忙碌于magento性能优化。      经过优化后,速度上了几个台阶,觉得能让大部分人都接受了,据本人目测最少快了(7-8倍)。 参考结合了前辈的经验总结了如下很重要的几点: 1) Magento Caching. Magento 自身cache Goto Magento Admin -> System -> Cache Management - Tick the following items: – Configuration – Layouts – Block HTML output – Translations 2) MySQL Cache Size 设置 query_cache_size=128M innodb_buffer_pool_size=64M innodb_additional_mem_pool=16M 4) Enabling Gzipping 启用gzip压缩 .htaccess php_flag zlib.output_compression on AddHandler application/x-httpd-php5 .css 修改 .htaccess mod_deflate 配置 本人配置如下: [Copy to clipboard]View Code PHP # Insert filter on all content SetOutputFilter DEFLATE More >

你可能感兴趣的:(magento 性能优化)