Я просто новичок здесь. Я использую xampp1.7.1 php версии 5.2.9 и Magento 1.7. На моем локальном сервере я хочу увеличить скорость magento, и для этого я пробую много трюков, которые можно найти в Google. Но все равно производительность не растет. В частности, время сохранения (что бы я ни сохранял в бэкэнде) занимает огромное время (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»
Включить «Управление кешем» из бэкэнда magento
Установите расширение «Fooman_Speedster»
Но все равно скорость от этого не увеличилась. Если у вас есть какие-либо предложения или советы, пожалуйста, поделитесь со мной. Извините за мой английский. Заранее большое спасибо.