All In One Cache module with Redis by @thisjrodriguez

All In One Cache module with Redis by @thisjrodriguez
search
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
  • All In One Cache module with Redis by @thisjrodriguez
Compatibility

1.7.8 sin redis

8.1 a 9.1 completa

Why did we create this module?

The new bot loads are crashing many servers; this module is a lifesaver for most websites. It's our small contribution to the PrestaShop community.

Thanks to Julio Rodriguez, the loading problems of thousands of websites have been improved and resolved.

License

License and Support Policy

At rekire , we want to make things easy for you. That's why our PrestaShop modules come with a flexible usage license:

✔ Unlimited use in your projects: You can use the module in as many of your own installations as you want, even if you are an agency and manage multiple websites (without needing to be under the multi-store modality).
✘ Distribution restrictions: What is not allowed is the exchange, distribution, sale or republication of the module to third parties.
Professional ethics

This software is our livelihood. We ask for your professional ethics and that you make new purchases if the volume of projects requires it; it's the only way for us to make it worthwhile to continue developing such "cool" modules and maintain our constant improvements.

Technical Support

In order to provide you with the best service, module support is governed by the following conditions:

  • Support will be provided exclusively on the website declared as the main site .
  • If a primary site has not been declared, support will automatically be applied to the first installation where the module is activated.
€0.00,
€0.00 €0.00

🚀 AllInOneCache: Comprehensive High Performance for PrestaShop

It drastically reduces loading times and server load by acting on three levels: Full Page, Database (Redis), and Bytecode (OPcache) . Compatible with versions 1.7, 8.x, and the upcoming 9.x.

  • Page Cache: Serves static HTML without executing PHP.
  • Object Cache: Intercepts SQL queries and serves them from Redis.
  • Smart Purge: Intelligent self-cleaning using PrestaShop hooks.
Rekire 's ultimate solution for ultra-fast TTFB and optimized SEO.
Quantity

Module support

Exclusive benefits of the module

⚙ Installation and training

It's not included, but we'd be happy to help you with anything you need. Just write to us and we'll look into it.

♻ Lifetime Updates

Get permanent access to the latest version of your module. Your investment is protected, and we'll always try to update it to the latest versions of PrestaShop.

✅ Certified Quality

Our modules have passed the official PrestaShop validation, ensuring their security, performance and compatibility with the platform's standards.

⭐ Support

As we mentioned, this module will not have support, but you can ask us for help and suggestions for improvement, which our expert team will try to address. If you would like support from our expert team, you would need to subscribe to our services.

Asesor experto

¿Necesitas ayuda de un experto? ¿Hablamos?

AllInOneCache

High-Performance All-Around for PrestaShop

Version 1.0.0 thisjrodriguez.com

It operates on three levels

AllInOneCache

  • Saves entire pages to disk to serve them without running PHP
  • Store SQL query results in Redis to avoid database access
  • Manages the PHP bytecode cache (OPcache).

🌐 Page Cache

It saves the complete HTML of each page to disk. Subsequent visits receive the file directly, without PrestaShop or PHP executing anything.

Available options:
  • It allows you to skip the shopping cart, checkout pages, and other URLs using regular expressions.
  • Generates separate cache versions for mobile, tablet, and desktop.
  • Bots and crawlers (Google, GPTBot…) always receive an instant response, even if the cache has expired.
  • Configurable TTL — default 3600 s (1 hour).
  • Optional minification of HTML, inline JS and inline CSS.
  • Removal of HTML comments and automatic lazy loading of images.
  • Auto-purge configured via hooks: products, categories, CMS, special prices, discounts, combinations, manufacturers, suppliers, and store configuration.
  • Real-time statistics panel: hits, misses, total requests and hit rate.
  • Manual purge available: clear the entire cache, purge a specific URL, or clean everything with a single click.

🗄️ Database Cache

It intercepts PrestaShop SQL queries and stores the results in Redis. The same queries are served from memory without accessing the database.

Available options:
  • 🔹 Connection via TCP/IP or Unix Socket.
  • 🔹 Configurable query TTL — default 1800 s (30 min).
  • 🔹 Each table in the database can be activated or deactivated individually from the panel.
  • 🔹 Critical tables (orders, sessions, cart…) are locked and never cached.
  • 🔹 Auto-purge configured via hooks: products, categories, CMS, etc.
  • 🔹 Statistics panel: hit rate, memory used, total keys and operations/sec.
  • 🔹 Manual purge available from the admin with one click.

⚡ Bytecode Cache

Manages the PHP compiled bytecode cache. Allows purging from the administration panel without requiring direct server access.

Available options:
  • Manual purge from the admin with one click (opcache_reset()).
  • Automatically included in the global purge along with the rest of the caches.
  • Statistics panel: hit rate, memory used, cached scripts, and restarts per OOM.
  • Auto-purge configured via hooks synchronized with the store.

Advanced Technical Information

File architecture

Archive Responsibility
allinionecache.php Main class. Registers hooks, manages install/uninstall/reset, triggers the auto-purge of both caches when content is modified in the back office.
classes/RedisCache.php Manages the connection to Redis. The connection is opened only once and reused for all queries. Supports TCP/IP and Unix sockets.
classes/PageCache.php Full-page caching engine. Serves HTML from disk before PrestaShop starts, saves the generated response, applies minification, lazy loading, and bypass logic (bots, logged-in users, shopping cart, URL exclusions).
classes/PageCacheStats.php Log page cache hits and misses to a locked JSON file flock() to avoid race conditions in concurrent environments.
db_overrides/classes/db/DbMySQLi.php PrestaShop MySQLi driver override. Intercepts executes, , getValue and getRow For caching SQL results in Redis. Includes anti-recursion protection.
db_overrides/classes/db/DbPDO.php PrestaShop PDO driver override. It intercepts the same functions as DbMySQLi to cache SQL results in Redis. PrestaShop uses one or the other depending on the server configuration.
controllers/admin/AdminAllinionecacheController.php Admin panel controller. Manages all AJAX actions: purges, statistics, table configuration, Redis connection testing, and diagnostics.
views/templates/admin/configure.tpl Smarty template for the panel. Includes tabs by section, configuration toggles, a cacheable table of tables with filters, and statistics graphs.

Configuration keys

Clue Description Default
ALLINIONECACHE_CACHE_TYPE Cache type: redis or empty
ALLINIONECACHE_REDIS_HOST Redis Host 127.0.0.1
ALLINIONECACHE_REDIS_PORT Port Redis 6379
ALLINIONECACHE_REDIS_DATABASE Redis database number 0
ALLINIONECACHE_REDIS_PASSWORD Redis Password
ALLINIONECACHE_QUERY_TTL TTL queries Redis (seconds) 1800
ALLINIONECACHE_PC_ENABLED Page cache enabled 0
ALLINIONECACHE_PC_TTL TTL page cache (seconds) 86400
ALLINIONECACHE_PC_BOT_STALE Serve expired cache to bots 1
ALLINIONECACHE_PC_AUTO_PURGE Automatic purging when content is modified 0
ALLINIONECACHE_PC_VARY_DEVICE Cache separated by device 0
ALLINIONECACHE_PC_MINIFY_HTML Minify HTML 0
ALLINIONECACHE_PC_MINIFY_JS Minify JS inline 0
ALLINIONECACHE_PC_MINIFY_CSS Minify inline CSS 0
ALLINIONECACHE_PC_LAZY_IMAGES Add loading="lazy" to images 0
ALLINIONECACHE_TABLE_CONFIG JSON configuration of cacheable tables

Tables always locked (Critical Security)

The following tables are never cached in Redis to ensure the absolute integrity of transactional data:

ps_cart ps_cart_product ps_guest ps_customer ps_address ps_hook ps_hook_module ps_module ps_module_group ps_module_shop ps_connections ps_connections_page ps_connections_source ps_page_viewed ps_statssearch ps_customer_session ps_employee_session ps_customization ps_customized_data ps_customer_thread ps_customer_message ps_orders ps_order_detail ps_order_history ps_order_payment ps_order_carrier ps_order_cart_rule ps_order_detail_tax ps_order_invoice ps_order_invoice_payment ps_order_invoice_tax ps_order_message ps_order_message_lang ps_order_return ps_order_return_detail ps_order_return_state ps_order_return_state_lang ps_order_slip ps_order_slip_detail ps_order_state ps_order_state_lang ps_stock_available ps_stock_mvt ps_product_sale ps_specific_price ps_redsys_fee_discount ps_redsys_refund1773049791 ps_redsys_transaction1773049791 ps_smarty_cache ps_smarty_last_flush ps_smarty_lazy_cache ps_log ps_mail ps_psgdpr_log

HTTP Headers of the Page Cache

Header Worth When
X-Cache HIT Valid cache served
X-Cache HIT-STALE Expired cache served to bot
X-Cache-Generator AllInOneCache In all cached responses
Cache-Control public, max-age=N Normal response from cache
Cache-Control no-store Expired cache served to bot
Age Seconds since it was generated In all cached responses

Cache key

Item Cache query_{tabla}_{md5(sql)}

Table purge: query_{tabla}_*

Page Cache md5(shop_lang_currency_device_url)

Directory: /var/allinionecache/

Compatibility

System Version State
PrestaShop 1.7.6 ,8.x, 9.x Supported
PHP 7.2 — 8.3 Supported
Redis 4.x, 5.x, 6.x, 7.x Supported
Driver DB MySQLi + PDO Both supported
Multistore Supported

Professional optimization of Rekire for high-performance eCommerce.

2026-05-11

1.1.6

Many improvements in error handling

Bug fixes such as those during uninstallation

2026-04-10

Various optimization and configuration improvements.

Redis disabled in the back office

2026-03-20

minor corrections

2026-03-18

first fully functional version

Cookie consent