Saya hanya seorang pemula di sini. Saya menggunakan xampp1.7.1 php versi 5.2.9 dan Magento 1.7. Di server lokal saya, saya ingin meningkatkan kecepatan Magento dan untuk itu saya mencoba banyak trik yang ditemukan di Google. Tapi tetap saja performanya tidak meningkat. Khususnya penghematan waktu (apa pun yang saya simpan di back end) membutuhkan banyak waktu (5 menit atau lebih...). Berikut daftar apa yang saya lakukan:
- Dalam file php.ini:
Ubah nilai dari
memory_limit = 8M --> memory_limit = 128M
query_cache_size=16M --> query_cache_size=64M
- Dalam file my.ini :
Tetapkan nilai 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
- Dalam file Magento .htaccess Batalkan komentar pada baris-baris penting
Dari ini :
<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>
Untuk ini :
<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>
Hapus centang dari “#php_flag zlib.output_compression on” ke “php_flag zlib.output_compression on”
Aktifkan "Manajemen Cache" dari backend Magento
Instal ekstensi “Fooman_Speedster”.
Namun tetap saja kecepatannya tidak meningkat. Jika Anda memiliki saran atau tips, silakan berbagi dengan saya. Maaf untuk bahasa Inggris saya. Terima kasih banyak sebelumnya.