Skip to content
OpenCart · User manual

Performance Pro

Version 1.4.2 Product page
Chapter 5

The Cache tab

The Cache tab is the main screen of Performance Pro: the main switch, instant pages for new visitors, the five categories and the buttons to save and to clear the cache.

The top of the page

ElementWhat it does
StoreOnly in multi-store installations. Chooses the store whose licence and settings you see. See Licence and activation.
Caching enabled / Caching disabledThe line under the title says whether caching is on for this store.
Installed versionThe version of the module in your store, followed by Up to date or by New version available and a link to the update steps.
DashboardReturns to the dashboard of your OpenCart administration.
Administration languageThe language of the Performance Pro page. Automatic (OpenCart) follows the language of your administrator user. You can also choose one of the eight included languages.
RefreshLoads the page again with the current state of the licence and the settings.

On the left, six tabs: Cache, Server tips, Personalized audit, Need more power?, License and Support. The last five are described in Server tips and the other tabs.

Enable caching

The main switch. While it is unticked, Performance Pro does nothing in your shop, whatever the other boxes say. Tick it and press Save to start; untick it and press Save to stop.

Default: off. You decide when to start.

Instant pages for new visitors

A visitor who arrives for the first time, and a search engine, have no session in your shop yet. With this option they receive a stored copy of the page from their very first visit, without OpenCart having to start.

  • A page is stored for new visitors only after it has come out identical twice, for two different new visitors. To get there sooner, your shop asks for a new page once more itself, after the visitor has been answered. It makes at most ten such requests a minute and pauses for a while when none of them is of use.
  • Stored pages are renewed automatically when products, prices or stock change.
  • Default: on. It needs the Pages category to be on.

Turn it off if your shop shows different content depending on the visitor's IP address, for example prices or taxes by country. The visitor's address is not part of what identifies a stored page, so such a shop could show a new visitor the page built for another country.

Keep stored pages for

How long a page stored for new visitors may be kept at most: 1 h, 2 h, 6 h, 12 h or 24 h. Default: 24 h.

This is an upper limit. A change made through OpenCart ends the stored pages at once, and a change made directly in the database, outside OpenCart, is noticed within minutes. A shorter time only makes sense if parts of your pages change by themselves without any change in the catalogue.

The five categories

Each category has a tick box and an i button that shows a short explanation. All five are on by default. They only act while Enable caching is on.

Pages

Stores complete public pages and serves them again: the home page, categories, products, manufacturers, special offers, information pages and search results. Private pages and sessions keep their normal protections. How the page cache works explains what is stored and what never is.

Turn it off only to find the cause of a problem. Without it no page is stored, and Instant pages for new visitors does nothing.

Data

Reuses the results of repeated catalogue queries on public pages for visitors who are not signed in. A page that has to be built then needs far fewer database queries. The results are kept for a few minutes at most, and a change made in the administration, by an order or by another extension ends them at once.

If you change your catalogue with a custom import or a tool that writes to the database outside OpenCart, press Clear cache afterwards.

Templates and modules

Reuses the generated output of the stock catalogue modules: Featured, Latest, Bestsellers, Specials and HTML Content. Theme modules keep their own behaviour.

CSS and JavaScript

Joins consecutive local script files into one, compresses the page and, on Journal 3, prepares the first paint. It also makes the Google Tag Manager snippet wait for the visitor's first interaction. Check custom scripts after enabling it. Details in CSS, JavaScript and images.

Images

Serves local images as WebP when your server can create them and the result is smaller, and gives priority to the main image of the page. Details in CSS, JavaScript and images.

Save

Applies everything on the tab. The message Changes saved confirms it. Saving also clears the stored pages and data, so the next visits build fresh pages with the new settings.

If caching cannot be started on your store, nothing is changed and a message says why, with a code at the end. See Troubleshooting.

Clear cache

Removes the stored pages and the stored data of the store you are looking at. The message Cache cleared confirms it. Each page is built again on its next visit and stored again.

  • Your settings are kept.
  • The optimised script files and WebP images are kept. They are named after their content, so a file that has changed gets a new name and an unchanged one is reused.

You rarely need this button, because changes made through OpenCart are noticed automatically. Use it after changes made outside OpenCart: a database import, files edited by FTP, or a change in the theme's files.

Request a personalized audit

The box at the bottom of the tab opens the Personalized audit tab. It is an optional paid service, separate from the licence.

Still need help?

Open a support ticket from your account and our team will look at your store with you.