Full page CACHE + HTML minify

Full page CACHE + HTML minify

Full page CACHE + HTML minify

Addon «Full page CACHE add-on for CS-Cart + HTML minify» reduces server response time ! The server does not need to constantly access the database and blocks of the site to generate a page, it does this once (when the page is visited for the first time), after which it gives the subsequent visitors a cached page. This reduces the load on the server.

The server response time in the absence of full-page cache addon depends on the fullness of the online store. The number of products and visitors when addon is turned on does not matter.

When clearing the cache from the admin panel - Full page cache will also be cleared!
Do not forget that full page caching requires more memory on your hard drive! One cached page has a size of approximately 10-15 KB. The size of all cached pages can be up to 2 GB.

Compatibility

The add-on is compatible with the entire cs-cart 4.x branch with such editions as CS-Cart, CS-Cart Ultimate, Multivendor, Multivendor Plus, Multivendor Ultimate. 

Full page CACHE + HTML minify add-on not compatible with the add-on SEOhide from Alexbranding.

If an add-on conflicts with your theme, please contact via our Help Center.

We cannot guarantee that the add-on will work correctly on projects with a large number of custom or third-party add-ons.

Add-on installation

After success payment, your order will be automatically marked as Paid within a few minutes. Once order changed to Paid status - add-on License activation passed success and you will received an e-mail with confirmation the receipt of payment and a second e-mail with a  download add-on link. You can also download the add-on in our License Management section of our website. To install the add-on on your website, please follow these steps:

  1. Download the latest version of the add-on on our website in the "License Management" section or via the link sent by e-mail.
  2. Go to Add-ons → Manage Add-ons and in the gear button, select Manual Installation.
  3. Select the downloaded file and complete the installation of the add-on.

Add-on installation is completed.

Setting up the add-on

After successful installation of the add-on, it will be ready to work with the default settings. You can always change them if you need to. To do this you need to log in to the admin panel, go to Add-ons → CS-Commerce Addons → Full page cache.

Most of the settings were created in order to adapt page caching for non-standard projects in which some sections cannot be cached.

General tab:

  1. Cache expiry time (hours) - Enter the time in hours after which the cache will become irrelevant (outdated). Specify 0 so that the cache does not lose its relevance.
  2. Select controllers where to use cache (products, categories, pages, home page, page not found, brand page, tags).
  3. Save cache on gzipped files - takes up 5 times less space on your server.
  4. Minify html - is the process of minimizing the code and optimizing your page. If the HTML structure is incorrect, errors may occur. After enabling this option, you need to check the display of your website.
  5. Create custom cache for mobile devices - if you use third-party add-ons to customize the appearance of the site for mobile devices.
  6. Storage type - File or Redis (to work with Redis you need to install the Redis service on your server and then establish a connection with it).

Clear cache triggers tab:

You can to set conditions for which the cache will be cleared automatically.

  1. On update product, rebuild Cache where this product was shown.
  2. On create or delete product, rebuild all categories cache.
  3. On update page rebuild pages cache.
  4. On update category rebuild categories cache.

Skip caching settings tab:

  1. Don't save to cache ajax request.
  2. Skip filters generated category pages -  in order not to save filters generated pages, since the number of their combinations can be very large for each category.
  3. Don't rebuild cache when import is running - because the import process can trigger update product action, this can cause lower speed on import process. It is recommended to leave this option checked.

Users and caching tab:

The settings below are designed to adapt the work with projects that have a custom configuration, in order to avoid conflicts with adaptations for non-standard themes.

  1. Dont's save cache from logged users.
  2. Disable cache for logged users.
  3. Disable for users with products in cart.
  4. Disable for users with products in wishlist.
  5. Disable for users with products in compare list.
  6. Generate cache depending of usergroup.
  7. Generate cache by user location - cache will be generated depended of defined user rate area. Required, for example, for prices with VAT, when the values differ for different rates areas.
  8. Differ cache depending on applied promotions.

Information tab:

Information on how to clear cache on a schedule.

  1. Cron key - the key to the uniqueness and security of access to the cache.
  2. General information.
  3. Clear cache by Cron:
    • Delete all expired cache files - will be deleted all expired cache files regardless of the selected controllers. The cache life value is taken from: General tab → Cache expiry time (hours).
    • Products.
    • Categories.
    • Pages.
    • Home page.
    • Page Not Found.
    • Brand page.
    • Tags.

After selecting the required CRON parameters, the corresponding command is generated from below.

Server response speed

Below are the charts "Server response" and "Longest response of the server" with the addon turned on and off while visiting the online store of 25, 50 and 100 customers:

Don't try to tell the difference in PageSpeed Insights and similar services that provide an estimate of page loading speed. They don't take into account optimizations to speed up page loads and offline caching. And most importantly, they check network latency and do not take server-side processing into account.

Manual cache clearing

To manually clear the cache from time to time, in the admin panel, select AdministrationFull page cache[Select the desired option]. You can choose from the following types of cache clearing:

  1. Clear ALL Cache.
  2. Clear EXPIRIED cache.
  3. Clear PRODUCTS cache.
  4. Clear CATEGORIES cache.
  5. Clear PAGES cache.
  6. Clear HOMEPAGE cache.
  7. Clear NOT FOUND cache.
  8. Clear brands pages cache.
  9. Clear Tags cache.

Disable Blocks

The add-on supports disabling blocks from caching. To do this, go to Editing block and select Exclude block from Full page cache.

This setting does not guarantee the correct display of a block if a controller is used to display its content.

Upgrade an add-on

In order to have access to add-on upgrades, you must have an active upgrade subscription. If the subscription period has expired, you will only have access to upgrades released before the expiration date of your subscription. You can renew your upgrades subscription in the "License Management" section on our website.

The add-on supports instant upgrades via the CS-Cart Upgrade Center. The built-in CS-Cart Notification Center (bell) will notify you about new versions release of the add-on. Upgrades via Upgrades Center will allow you to switch to a newer version without losing add-on data and settings.

Before start an upgrade process, it is highly recommended to make a full backup of the site (database and files) of your store using the server or hosting methods. 

 Upgrade through the Upgrade Center

  1. In the top menu, go to Administration → Upgrade Center;
  2. In the gear menu, click "Refresh available upgrades"
  3. Find and add-on on list of available upgrades and click the Download button and than Install button;
  4. Follow all the instructions that will be shown during the upgrade process;
  5. It is recommended to clear the CS-Cart templates cache after the upgrades are installed by deleting the var/cache folder on your server or adding the ctpl parameter to the address bar (example: https://domain.com/admin.php?ctpl).

Addon Reinstallation by uninstall old and install new:

Reinstalling an add-on means deleting the add-on's settings and data. Reinstallation will allow you to get a clean installation of the latest addon version. To reinstall the add-on with saving the add-on settings and data, please contact us via our Support Center to provide this service.

To completely reinstall an add-on without saving data, follow these steps:

  1. Go to Add-ons → Manage add-ons and find the old installed add-on.
  2. Click the delete button in the gear menu of the add-on.
  3. Download the latest version of the add-on on our website in the "License Management" section.
  4. Go to Add-ons → Manage add-ons and in the gear menu select Manual Installation. Select the previously downloaded file and complete the installation of the add-on.

Technical support

The technical support of the add-on is already included in its price. Before contacting the support center, please make sure you are using the latest released version of the add-on. Old versions of the add-on are not supported by technical support.

To use our technical support, follow these steps:

  1. On our support center site https://helpdesk.cs-commerce.com/, log in with your account;
  2. Click on the "Create ticket" button;
  3. Fill in all the required fields and create ticket (you will receive a confirmation email);
  4. Expect a response from a specialist (a notification will be sent to your e-mail about the response) in accordance with the regulations of the technical support service.

If you have not received an answer within the time frame specified in the regulations, write us a message to the e-mail [email protected] with the subject of the ticket and we will try to resolve your issue as soon as possible.

Technical support via chat on the site, direct phone calls or e-mail letters is not provided. All help discuss goes through the support center. Carefully study the documentation for the add-on and the terms of technical support before creating a ticket. 

Limitations and Warnings

We recommend that you familiarize with the general restrictions:

  1. Fragments of code or some files of an add-on may have a private (encoded) part. The coded part does not create problems on add-on customizations;
  2. The add-on will work only on those domains that are specified in the user's license. If you try to use the solution the domains of which are not included in the license, the add-on will be automatically disabled;
  3. Installing on local machines is not allowed by the licensing system. For the add-on to work on an additional domain (alias), specify this alias on the license management page. Up to three aliases are allowed per domain for testing and development purposes. You can change the main license domain yourself on the license management page.
To have possibility to add or change license domains and aliases, the upgrade subscription must be active. To change the license domain of an expired upgrades subscription, you must first renew your subscription.