我只是这里的初学者。我正在使用 xampp1.7.1 php 版本 5.2.9 和 Magento 1.7。在我的本地服务器中,我想提高 magento 的速度,为此我尝试了很多在谷歌中找到的技巧。但性能仍然没有提高。特别是节省时间(无论我在后端保存什么)都需要大量时间(5 分钟或更多......)。这是我所做的清单:
- 在 php.ini 文件中:
更改值
memory_limit = 8M --> memory_limit = 128M
query_cache_size=16M --> query_cache_size=64M
- 在 my.ini 文件中:
设置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
- 在 magento .htaccess 文件中取消注释重要的行
由此 :
<IfModule mod_deflate.c>
############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter on all content
###SetOutputFilter DEFLATE
# Insert filter on selected content types only
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# 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
</IfModule>
对此:
<IfModule mod_deflate.c>
############################################
## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip
# Insert filter on all content
SetOutputFilter DEFLATE
# Insert filter on selected content types only
#AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
# 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
</IfModule>
从“#php_flag zlib.output_compression on”取消选中“php_flag zlib.output_compression on”</p>
从 magento 后端启用“缓存管理”
安装“Fooman_Speedster”扩展
但是它的速度仍然没有增加。如果您有任何建议或提示,请与我分享。对不起我的英语不好。非常感谢提前。