Cart Cacher in OpenCart

BonusGet bonus +100 грн. for your review

Download files

Characteristics
OpenCart2.0, 2.1, 2.2, 2.3, 3.0
PHP7.0 – 8.5
XML modificationYes
LocalizationEnglish, Ukrainian, Russian
Statistics 2671 12
Added08.04.2025
Updated03.03.2026 · 4 months ago
Files cart-cacher_oc2x-3x.ocmod.zip

Cart Cacher is a small but very practical OCMOD module for OpenCart that caches calculated cart data at the cart library level. The idea is simple: if the cart contents haven't changed, the module doesn't need to rebuild the product array each time—it uses the final result from the cache, saving server time.

What does the module do?

  • Saves cart data to the cache using the cart.{session_ID} key.
  • Returns
  • Resets the cache whenever the cart is changed: adding, updating quantity, deleting, clearing.
  • Connects the cache object from the OpenCart registry to the cart library.

What data does it work with?

  1. Array $product_data (collected cart items).
  2. OpenCart cache: $this->cache.
  3. User session: $this->session->getId().

Advantages

  • Speed up reopenings of the cart/mini-cart and pages where it is displayed.
  • Less server load for active users and frequent recalculations.
  • Safe logic the cache is deleted whenever the cart is changed.

Important: The cache is tied to the session ID, so one customer's data is not mixed with others.

Recommendations for use

The module is especially useful for stores with complex templates, frequent AJAX updates to the mini-cart, and a large number of visitors. After installation, test the following scenarios: adding a product, changing the quantity, deleting it—the cache should be reset correctly, and the cart should remain up-to-date.

File Name Added Modified
cart-cacher_oc2x-3x.ocmod.zip
Size: 1.39 KB | Total downloads: 12
08.04.202503.03.2026

Leave your review about this product

Bonus Get bonus +100 грн. for your review Bonus program

Write a review

Note: HTML is not translated!
AI Assistant

Recently viewed

2.x, 3.x
Cart Cacher
Бесплатно
0
2672 12

Featured

Popup Cart
699 грн.399 грн.
Improved Shopping Cart
699 грн.399 грн.
Cart lifetime
699 грн.399 грн.