OpenCart Optimization Steps

Please consider enabling Memcached (Available for our Mocha and WordPress advanced packages) on OpenCart for even faster loading speed, before proceeding with the steps below. You can follow this TUTORIAL to do this.

 
 
Optimize and speed up your OpenCart application

In order to optimize and speed up your OpenCart application, please follow the steps below:

 
 
Disable product counters

OpenCart counts the number of products in each subcategory. If your store has a lot of subcategories, however, this feature can negatively affect performance.

To disable product counters, follow these steps:

  • Log in to OpenCart as the administrator.

1_OpenCart.png

  • Click the  OpenCart > Settings icon, and then click Settings.

2_OpenCart.png

  • Select your store, and then click the Edit icon.

3_OpenCart.png

  • Click the Option tab.

4_OpenCart.png

  1. Under Products, for the Category Product Count option, click No.

5_OpenCart.png

  1. Click the Save icon.

6_OpenCart.png

Enable Browser Cache.
  1. Click on the File Manager under FILES in your Cpanel.

7_OpenCart.png

  1. Navigate to the OpenCart 'root' directory.

  2. Make sure to click on the Settings button and enable Show Hidden Files (dotfiles).

8_OpenCart.png

9_OpenCart.png

  1. Edit the .htaccess.txt file and add (copy/paste) the following at the end.

`## EXPIRES CACHING ##

ExpiresActive On
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/x-javascript "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresDefault "access plus 1 week"

 
 
EXPIRES CACHING ##`
10_OpenCart.png
Enable Gzip Compression.
  1. Do the exact same as in Enable Browser Cache section, by copy/pasting the content below at the end of the .htaccess.txt file:

`# compress text, HTML, JavaScript, CSS, and XML
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

 
 
remove browser bugs

BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent`

  1. Click Save Changes.

11_OpenCart.png

 

  • 1 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

SiteBuilder: eshop Support Payment Modules

The following is the list of available SiteBuilder 4 supported payment modules: Cash On Delivery...

Site Builder Browser Compatibility

Our latest site builder software version is NOT yet compatible with Internet Explorer 7. The site...

Can I use my files and upload my own site?

You can use your own design and site related files. You do not need to use our builder or...

How to reset WordPress password?

You can manually reset your WP password following the official article from WP, at:...

How do I create a mailto link on my page?

The mailto command will place blue wording on the screen that people can click to send you a...

Powered by WHMCompleteSolution