How the page cache works
Which pages Performance Pro stores, which ones it always leaves to OpenCart, how long a stored page lives and what renews it.
Which pages are stored
Only public catalogue pages, requested normally by a browser:
- the home page;
- category pages, including their pagination;
- product pages;
- the manufacturer list and manufacturer pages;
- special offers;
- information pages;
- search results and filtered listings.
A stored page always belongs to one exact combination of address, language, currency and cookies such as the visitor's cookie consent. A visitor never receives a page built for another language or currency.
Visit-tracking parameters added by advertising and e-mail campaigns (utm_source, utm_medium, utm_campaign, gclid, fbclid, msclkid and similar) do not create separate copies: a visitor who arrives from a campaign receives the same stored page as everybody else.
Who receives a stored page
| Visitor | What happens |
|---|---|
| A new visitor or a search engine, with no session yet | Receives a stored page from the first visit, if Instant pages for new visitors is on. |
| A guest who is browsing, with nothing personal in the session | Shares the stored pages with the other guests. |
| A guest with products in the cart, or with a message on screen such as "product added" | The page is left to OpenCart, so the cart and the message are always right. |
| A signed-in customer | Every page is left to OpenCart. |
What is never stored
Performance Pro leaves the request to OpenCart, untouched, in all these cases:
- the cart, the checkout, the account area, the wish list, the compare page and every page that is not in the list above;
- anything in your administration;
- forms being sent (any request that is not a plain page view);
- background requests made by scripts, except the pagination of a category;
- addresses that carry a parameter named like a token, password, key, code, tracking or affiliate reference;
- a page that sets a cookie, that OpenCart or another extension marks as not cacheable, or that answers with anything other than a normal page (a redirect, a "not found" page, an error);
- a page that contains a form with a filled-in security token or password field.
These rules are fixed. There is no exclusion list to fill in, and nothing you need to exclude by hand for the cart and the checkout to stay safe.
How long a stored page lives
- Pages shared between browsing guests are kept for up to five minutes.
- Pages for new visitors are kept for the time you choose in Keep stored pages for, from 1 to 24 hours, and never beyond the end of the day (UTC).
- A product or category with a dated change, such as a special price that starts or ends at a set date, is not kept past that date.
What renews stored pages
You do not have to clear the cache after ordinary work in your shop. Stored pages and stored data end at once when:
- you add, edit or delete a product, category, manufacturer, information page or review in the administration;
- you save the store settings, a currency or a language;
- you save Journal 3 settings, modules, skins, layouts or styles;
- an order is placed, so stock is always current;
- another extension writes to the catalogue through OpenCart.
A change made directly in the database, outside OpenCart, is noticed within a few minutes. Press Clear cache if you want it to appear at once.
Some extensions write a line to their own log table on every visit, for example a log of robots or of pages not found. Such a log entry does not empty the cache. An extension that updates its own table on every visit in another way can still end the stored pages each time; if almost every page shows MISS in the response header, see Troubleshooting.
In a multi-store installation a catalogue change renews the stored pages of every store.
Clearing the cache by hand
Press Clear cache on the Cache tab. It removes the stored pages and stored data of the store you are looking at; your settings and the optimised files stay. Pressing Save does the same, and so does updating the module to a new version.
Use it after:
- an import or a bulk change made outside OpenCart;
- changes to the theme's files made by FTP;
- installing or removing another extension that changes what your pages show.
Still need help?
Open a support ticket from your account and our team will look at your store with you.