Super cache

Super cache for Shop-Script

Website acceleration

"Super cache" plugin improves SEO and usability of your website by increasing its performance.

This plugin belongs to our series of plugins "SPEED" if you want to speed up your site, take a look at other plugins in the same series: Lazy load

Currently not compatible with Megashop2 theme

How does this happen:

  1. When visiting a page of the site, the plugin saves a copy of the page in HTML format, and when visiting the page again, the server gives the user the saved copy, rather than generating the page using php and mysql, which reduces the load on the CPU and RAM.
  2. It then minifies HTML and inline JS and CSS, reducing the page weight by about 20%.
  3. Then it archives the file in GZIP format, which reduces the page weight by about 10 times.
  4. Fonts, images, JS and CSS files are cached client-side in the browser using Server Worker (based on Google's Workbox library).

Why do you need this plugin:

  1. Since May 2021, google has been taking into account the loading speed to rank the site in the search results, which means by improving the speed you improve the SEO of the site.
  2. Sites that load quickly are more convenient for your users, and this affects the conversion of the site, the number of pages viewed and, in general, the behavioral factor.
  3. Improves Core Web Vitals Metrics.

For which sites "Super Cache" will be most effective:

  • Site pages take more than 2 seconds to load.
  • PageSpeed ​​Insights metric "Time to first byte from server" is marked in red.
  • Large page size (a lot of inline, non-minified CSS and JS code, whitespace, line breaks).
  • It takes a long time to generate pages using PHP.

Plugin features:

  • Configuring scheduled cache deletion (requires CRON).
  • Removing the cache manually.
  • Creation of static HTML pages.
  • Minification of HTML and inline JS and CSS.
  • GZIP archiving.
  • Exclude certain pages from caching.
  • Configuring the location of the cache.
  • Use Server Worker client caching (modern browsers only).
  • 4 caching strategies for different types of devices (desktop, mobile, separate cache for mobile and desktop devices, shared cache).
  • Works with multiple domains.

Caching rules:

  • Pages are cached only for unauthorized users, for authorized users the standard version of the site is shown (optional). Works only when authorization is performed with the "Remember me" checkbox pressed or on the site authorization page for which the store application is responsible.
  • Pages are not cached for admin users.
  • When adding a product to the cart, users will be shown a non-cached version of the site (for the duration of the session).
  • If the user has added items to the cart, the cache will not be saved.
  • When editing a product in the control panel, the cache of product pages and its category is deleted.
  • When you add a review/comment, the product cache page is deleted.
  • When placing an order, the pages of ordered products and their categories are removed from the cache.
  • Pages are cached only in the language specified in the plugin settings (if not specified, the storefront language is taken).
  • For any massive changes to the site, you must clear the cache.

Installing and activating caching:

In the plugin settings, click "Enable caching" and "Configure Server Rules".

For the Apache and Apache+Nginx: web server, after saving the settings, the configured rules will be displayed in the plugin settings, they must be set independently in the topmost .htaccess file located in the root of your site (Mod_rewrite module and .htaccess support must be enabled on the server).

For the Nginx: web server, after saving the settings, the configured rules will be displayed in the plugin settings, they must be installed in the server configuration file yourself. Instructions and video instructions are in the plugin settings. (Requires access to the server config file and the ability to restart the server after making changes.)

The plugin is not guaranteed to work on other web servers!

How to check the work:

You must go to any of the pages of the "Store" application as an unauthorized user (it is best to use a different browser). The page counter in the plugin settings should increase. So the plugin is working.

To accurately measure the performance of a plugin, you need to measure the page load speed manually, through the browser console, and not using speed measurement sites, because they give erratic and inaccurate results with every request.

To manually measure the page loading speed. Visit the cached page as an unauthorized user. Open the browser console, go to the "Network" tab, select the "Document"/"HTML" type, the console will display the name of the page you are on with the download data (type, size, speed, etc.). Then clear the cache and disable caching, do it all over again and compare the results.

After enabling and configuring the plugin, go to the site from another browser and check the correctness of the site (from mobile and desktop devices). If something is wrong, write to technical support.

Technical support:

  • Technical support is provided at:
  • Working hours (Moscow time): 10:00 - 18:00
  • Technical support includes: setup advice, answers to questions about the plugin, plugin customization according to your instructions
  • We will be glad to hear your: wishes, ideas, comments on the plugin