Page cache - Catalog served from memory, without override
Your catalog served from memory, without override Serve the home page, categories and product pages in a few tens of milliseconds, logged-in customers included, using the accelerators of your server (OPcache, APCu, Redis, Memcached), without replacing a single PrestaShop file.
Descripción
The problem
PrestaShop computes every page again on every visit: database, prices, theme, modules. On a well-stocked shop, a category or a product page takes several hundred milliseconds, far more at peak times. Visitors wait and search engines notice the slowness.
Usual caches replace core files with overrides, which break on updates, or need a Varnish server that few hosts offer. And most do not know what to do with a logged-in customer: they ignore them, or serve them someone else's page.
The solution
This module keeps a copy of each catalog page in the memory of the server and serves it directly, compressed, without any override. It brings together the available accelerators: APCu or OPcache on the web server, and the Redis or Memcached of your hosting, found automatically, without a license.
Logged-in customers and visitors with a cart get the same page, with their name and their cart computed for them: no personal data enters the cache. Saving a product, a price or the configuration of a module refreshes the pages concerned, and the warm-up computes them again before your visitors. From the first opening, the module sets itself up: it tests your modules and measures the speed gain.
What sets it apart
Six design choices, for a faster shop without bad surprises.
No override
Only the PrestaShop hooks: no conflict with your modules, nothing breaks on updates.
Logged-in customers served
Their name, cart and account links are computed again on every page. Personal data never enters the cache.
All your accelerators
APCu, OPcache, Redis and Memcached, on two levels, found and chosen automatically according to your server, Redis included without a license.
Always up to date
Every page knows what it shows: a saved product refreshes its pages, a planned discount appears on time.
Warm-up
Changed pages are computed again by the scheduled task, at a pace that spares your server.
Statistics kept
Modules that count visits keep running on the pages served from the cache.
Three ways to speed up a shop
They do not give the same result. Here is where Page cache stands.
| PrestaShop built-in cache | Override cache or Varnish | Page cache | |
|---|---|---|---|
| Whole page served without computing | No, only parts | Yes | Yes, compressed |
| No override, no dedicated server | Yes | No | Yes |
| Logged-in customers and carts | Yes, computed page | Rarely, or with risks | Yes, personal blocks computed again |
| Update after a change | Yes | Often manual | Automatic, page by page |
| Redis, Memcached, APCu, OPcache | Partly | Depends on the solution | Yes, on two levels |
| Warm-up | No | Rarely | Yes, at the chosen pace |
The PrestaShop built-in cache (Smarty, class cache) remains useful: it speeds up the computed pages, which this module then serves from memory.
How it works
Install
The cache is on at once, with the best storage available on your server.
Let it set itself up
At the first opening, it finds the storage, tests your modules and saves the result: nothing to tick.
See the gain
The dashboard shows the speed of your home page, measured every day with and without cache, and the pages served.
Detailed features
Page cache
- Home page, categories, product pages, content pages, brands, suppliers, price drops, new products, best sellers
- One copy per shop, language, currency, country, group and device type
- Compressed copy sent directly, no computing
- A single request computes a missing page while the others wait
Storage
- Automatic local memory: APCu, files kept by OPcache or compressed files
- Redis or Memcached of the hosting found automatically, without a license
- Automatic fallback to the local memory if the shared server goes down
Logged-in customers and carts
- Personal blocks computed again on every page: sign-in, cart, account, reviews, viewed products
- Automatic test of the personal blocks, with a test customer deleted right after
- Cart, customer and tokens of the visitor in the scripts of the page
- Computed page for customers with other prices or another catalog
Automatic updates
- Product, price, stock, image, category, content, tax, country
- Configuration of the modules shown in the shop, modules installed or moved; back office modules ignored
- Lifetime limited by the dates of discounts
- Emptying of one address, one product or one category
Warm-up
- Queue filled on every change, adjustable pace
- Whole shop warm-up in one click
- Scheduled task via medcron or a protected address
Back office
- Speed of the home page measured every day, pages served, average times, memory used
- Automatic setup at the first opening
- Log of emptyings with their reason
- Per-shop settings in multistore
- X-Medpagecache diagnostic header
Responsible security policy
Module adhering to the TouchWeb Charter for responsible cybersecurity: acknowledgement within 7 days for any relevant report, fix and CVE publication within 30 days, never a silent fix. Published by Mediacom87, PrestaShop specialist since 2008.
Installation in 4 steps
Download the module and install it from your back office (Modules > Module Manager). The cache is on at once.
At the first opening of the configuration, the module finds the storage, tests your modules and measures the speed: there is nothing to tick.
Register your license for free in the License tab to also serve logged-in customers and warm up the pages.
In the Page cache tab, choose the cached pages and how long they are kept.
In the Warm-up tab, schedule the task with medcron in one click, or add the address shown to the crontab of your server.
Características
- Home page, categories, product pages, content pages, brands, suppliers, price drops, new products, best sellers
- One copy per shop, language, currency, country, group and device type
- Compressed copy sent directly, no computing
- A single request computes a missing page while the others wait
- Automatic local memory: APCu, files kept by OPcache or compressed files
- Redis or Memcached of the hosting found automatically, without a license
- Automatic fallback to the local memory if the shared server goes down
- Personal blocks computed again on every page: sign-in, cart, account, reviews, viewed products
- Automatic test of the personal blocks, with a test customer deleted right after
- Cart, customer and tokens of the visitor in the scripts of the page
- Computed page for customers with other prices or another catalog
- Product, price, stock, image, category, content, tax, country
- Configuration of the modules shown in the shop, modules installed or moved; back office modules ignored
- Lifetime limited by the dates of discounts
- Emptying of one address, one product or one category
- Queue filled on every change, adjustable pace
- Whole shop warm-up in one click
- Scheduled task via medcron or a protected address
- Speed of the home page measured every day, pages served, average times, memory used
- Automatic setup at the first opening
- Log of emptyings with their reason
- Per-shop settings in multistore
- X-Medpagecache diagnostic header
Historial de versiones
v1.0.0
- Initial release
¿Un proyecto, una pregunta, una auditoría?
Respuesta personal en 24h laborables. Conversemos sin compromiso.
Hablemos de tu proyecto →