By zk47, on 十一月 9th, 2009
This article is most useful if you are somewhat familiar with HTML and CSS. I explain the concepts well enough that you do not have to be an expert, but I want to provide material that will introduce you to more advanced design in ways you can understand. Like many other web designers, I . . . → Read More: SEO Benefits Of CSS
By zk47, on 十一月 9th, 2009
magento的网站实在是太慢了,想了好多办法,参考了好多资料,做了很多测试,总结一下大概的步骤:
1、压缩js,css代码,如果有必要把所有的css,js分别综合到一个文件中,并压缩,缓存
2、清除magento模板中不必要的注释,为所使用到的图片瘦身
3、优化magento代码,这个步骤工作量大,但可能是效果显著的步骤,不过前提是你非常熟悉magento,彻底删除不用的模块,关闭没用的block,清除无效,无用的xml(解析xml非常昂贵的),在一个页面中尽量不要大量调用magento的image resize功能,非常消耗内存,除非你自己优化代码。
4、mysql配置优化,充分发挥你的硬件资源,下面的数值要根据你的配置调整
key_buffer_size = 512M max_allowed_packet = 64M table_cache = 512 sort_buffer_size = 4M net_buffer_length = 8K 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 5、将magento的var目录挂载到内存中,加快读取速度,如 . . . → Read More: magento站点优化方案(转)
By zk47, on 十一月 9th, 2009
By zk47, on 十一月 8th, 2009