2.14.3.21. Configure LiteSpeed Cache in OpenCart

  1. Change the web server for the required site to OpenLiteSpeed.
  2. Download the OpenCart extension from LiteSpeed site. A GitHub page opens for downloading, where you need to click "Download":
  3. Open site admin panel and at the bottom of the page check OpenCart version:
  4. Go to "Modules / Extensions → Extension installation":
  5. Click "Upload" and select the downloaded archive:
  6. Go to "Modules / Extensions → Modules / Extensions":
  7. Select extension type "Modules", find "LiteSpeed Cache" module and next to it click "activate" , and then "edit" :
  8. On "General" tab next to "LiteSpeed Cache Status" select "Enabled":
  9. Set the remaining plugin settings for caching that is suitable for the site and save all changes.
Content

    (1)

    Comments

    ingyaroslav
    Дякую за чудову інструкцію, єдина проблемка разом із розширенням потрібно ще змінювати правила у файлі .htaccess. В мене запрацював ось такий дефолтний набір (замість MYDOMAIN.COM.UA потрібно прописати свій домен в нижньому регістрі):


    # 1.To use URL Alias you need to be running apache with mod_rewrite enabled.
    # 2. In your opencart directory rename htaccess.txt to .htaccess.
    # For any support issues please visit: http://www.opencart.com

    Options
    +FollowSymlinks

    # Prevent Directoy listing
    Options -Indexes

    # Prevent Direct Access to files
    <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
    Require all denied
    ## For apache 2.2 and older, replace "Require all denied" with these two lines :
    # Order deny,allow
    # Deny from all
    </FilesMatch>

    # SEO URL Settings
    RewriteEngine On
    # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

    RewriteEngine On
    RewriteBase /
    RewriteRule ^/?sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
    RewriteRule ^/?googlebase.xml$ index.php?route=extension/feed/google_base [L]
    RewriteRule ^/?system/download/(.*) index.php?route=error/not_found [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
    RewriteRule ^/?([^/?]*) index.php?_route_=$1 [L,QSA]

    RewriteCond %{QUERY_STRING} ^/?route=product/manufacturer$
    RewriteRule ^/?(.*)$ https://MYDOMAIN.COM.UA/? [R=301,NC,L]
    AndreyPopov
    при встановленні плигін САМ додає до .htaccess потрібні рядки, деякі з них потрібно "розкоментувати" в залежності від налаштуваннь.

    у першу чергу повинно бути:
    <IfModule LiteSpeed>
    CacheLookup on
    </IfModule LiteSpeed>

    друге, ГОЛОВНЕ!!!!!!!!!!!!!
    усі директиви, правила повинні стояти ДО будь-якого правила с флагом [L]