ฉันเป็นเพียงผู้เริ่มต้นที่นี่ ฉันใช้ xampp1.7.1 php เวอร์ชัน 5.2.9 และ Magento 1.7 ในเซิร์ฟเวอร์ท้องถิ่นของฉัน ฉันต้องการเพิ่มความเร็วของวีโอไอพี และเพื่อจุดประสงค์นั้น ฉันลองใช้กลอุบายมากมายที่พบใน 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
- ในไฟล์วีโอไอพี .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”
เปิดใช้งาน "การจัดการแคช" จากแบ็กเอนด์วีโอไอพี
ติดตั้งส่วนขยาย “Fooman_Speedster”
แต่ความเร็วของมันยังไม่เพิ่มขึ้น หากคุณมีข้อเสนอแนะหรือเคล็ดลับใด ๆ โปรดแบ่งปันกับฉัน ขอโทษสำหรับภาษาอังกฤษของฉัน ขอบคุณมากล่วงหน้า