1
Bug Reports / Re: Slow Page Load time
Last post by Spuds -Code: [Copy]
gzip on;Just getting a static file from the server was slow and that has nothing to do with the ElkArte front end. Some of that is also having a lot of network to traverse between me and you.
gzip_comp_level 5;
gzip_min_length 256;
gzip_vary on;
gzip_proxied any;
gzip_types
text/css
application/javascript
text/javascript
application/json
image/svg+xml
font/ttf
application/vnd.ms-fontobject;
Other than that seeing 3-5 seconds on 17 queries maybe a slow connection to your db? If the db server setting is a hostname that may cause a DNS lookup for each connection which would be slow. You can try to measure it with:
Code: [Copy]
time mysql -h localhost -u USER -p'PASS' -e "SELECT 1;"
time mysql -h 127.0.0.1 -u USER -p'PASS' -e "SELECT 1;"
Can also check if the db is doing rDNS lookups, at least for MariaDb it should have skip-name-resolve in its conf file (assuming everything is on the same server)