Answer the question
In order to leave comments, you need to log in
What else to optimize on the opencart 3 site?
Good day!) There is an online store on opencart3, which in turn lies on vds with the ubuntu operating system and the vesta control panel. It was a hell of a server response time and 0 page speed.
It was decided to hold an event to optimize all this.
It was done:
indexes in
memcashd database of queries to
memcashd
opcache database were launched and rebuilt
in php, the memory was raised to 256, otherwise he sometimes cursed at the logs that there was not enough memory
in mysql - the cache of small queries and the general cache were set
In the vesta panel there are the following parameters:
Template Web:phpfcgid
Proxy support: yes
Template Proxy:caching
In opencart, compression is html = 6, there is a journal theme in it, you only have minifier css, js, html in performance, you
registered it in htaccess just in case, but this should not work in theory because of ngnx, right?
<ifModule mod_expires.c>
# Add correct content-type for fonts
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType application/x-font-opentype .otf
AddType application/x-font-woff .woff
AddType image/svg+xml .svg
# Compress compressible fonts
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
# Cache Images
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/svg+xml "access plus 2592000 seconds"
# Cache Fonts
ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds"
ExpiresByType application/x-font-ttf "access plus 2592000 seconds"
ExpiresByType application/x-font-opentype "access plus 2592000 seconds"
ExpiresByType application/x-font-woff "access plus 2592000 seconds"
ExpiresByType image/svg+xml "access plus 2592000 seconds"
# Cache other content types (Flash, CSS, JS, HTML, XML)
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 2592000 seconds"
ExpiresByType application/javascript "access plus 2592000 seconds"
ExpiresByType application/x-javascript "access plus 2592000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</ifModule>
Answer the question
In order to leave comments, you need to log in
You need to understand whether the server, opencart or your code is slowing down.
And fix it. But I think it's in the code. Maybe some template or custom plugin is on the site and it torts it. It is hard to say.
If the code breaks, you can profil the code and identify weaknesses.
yes, the site is down again (
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question