D
D
Denis Verbin2016-09-21 20:47:17
PHP
Denis Verbin, 2016-09-21 20:47:17

Speed ​​up Prestashop. What are your "hacks"?

Hello. I must say right away that the situation is not deplorable, the pages load in 1.5-2.7 seconds, but there is no limit to perfection :)
Share your variations how else can you overclock Prestashop?
My configuration
More than enough for hardware (i7 6700k/64ram/SSD)
nginx 1.8
php-fpm 5.4 (I plan to move to 5.6 or 7.0), but on php5.6 I feel there will be no exhaust, but on 7.0 it's scary :)
MariaDB 5.5
my. cnf

symbolic-links=0
skip-name-resolve=1
open_files_limit = 100000

skip-external-locking
key_buffer_size = 256M
max_allowed_packet = 32M
#table_open_cache = 256
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 80
query_cache_size= 256M
thread_concurrency = 8

table_open_cache = 2048
table_cache = 4096
table_definition_cache = 8192
join_buffer_size = 8M
tmp_table_size = 256M
max_heap_table_size = 256M
query_cache_type = 0

## InnoDB
innodb_buffer_pool_size = 2G
innodb_file_per_table

nginx.conf
worker_processes        8;
worker_rlimit_nofile    65535;
events {
        worker_connections  2048;
        use                 epoll;
        multi_accept        on;
}
http {
    # Main settings
    sendfile                        on;
    tcp_nopush                      on;
    tcp_nodelay                     on;
    client_header_timeout           1m;
    client_body_timeout             1m;
    client_header_buffer_size       2k;
    client_body_buffer_size         256k;
    client_max_body_size            256m;
    large_client_header_buffers     4   8k;
    send_timeout                    30;
    keepalive_timeout               60 60;
    keepalive_requests              100;
    reset_timedout_connection       on;
    server_tokens                   off;
    server_name_in_redirect         off;
    server_names_hash_max_size      512;
    server_names_hash_bucket_size   512;
    fastcgi_buffers                 16 16k;
    fastcgi_buffer_size             32k;

    open_file_cache                 max=200000 inactive=20s;
    open_file_cache_valid           30s;
    open_file_cache_min_uses        2;

    # Compression
    gzip                on;
    gzip_comp_level     5;
    gzip_min_length     512;
    gzip_buffers        8 64k;
    gzip_types          text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
    gzip_proxied        any;
    gzip_disable        "msie6";


    # Proxy settings
    proxy_redirect	off;
    proxy_set_header    Host            $host;
    proxy_set_header    X-Real-IP	$remote_addr;
    proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass_header   Set-Cookie;
    proxy_connect_timeout   90;
    proxy_send_timeout  90;
    proxy_read_timeout  90;
    proxy_buffers	32 4k;
...
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-09-21
@rez0n

If you do not want to dig into optimization, then I recommend upgrading to PHP 7.0.
For the test, this can be done first on a server clone.
nginx and MariaDB are also old (although the new version will not give a speed boost).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question