Choosing a cache driver for your store

CubeCart can cache in several ways, and the setting is easy to get wrong in a way that only shows up later.

What is available here

  • File – stores cache files on disk. Works everywhere, needs nothing enabled, but creates a great many small files.
  • Memcached – stores the cache in memory. Faster and creates no files. Available on our servers.
  • Redisnot available on our shared servers. Do not select it.

The failure to know about

If you select a driver whose PHP extension is not enabled for your account, the store does not fall back gracefully – it fails, and you get a white page or a fatal error naming a missing class. Because the setting is stored in the database, the admin may be inaccessible too, which makes it awkward to undo.

We have seen exactly this after a PHP version change: the store was set to memcached, the account moved to a new PHP version whose extension list did not include memcached, and the shop went down. The setting was fine; the extension was missing.

So before selecting a driver

Confirm the extension is enabled for the PHP version your account is actually running – in cPanel, Select PHP Version, then the extensions list. Remember that extensions do not carry over when you change version. See Choosing a PHP version.

The inode angle

File caching on a large catalogue can produce tens of thousands of files. If you are near your inode limit, memcached avoids that entirely.

If in doubt

Ask us which drivers are available for your account before changing it. It takes a moment and avoids taking the shop down.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Where your plugin licence key lives, and why it is tied to your store

Every Havenswift plugin is licensed to a specific store. Understanding how that works avoids the...

Moving your CubeCart store to a new domain

Moving a shop to a new address touches more than the web server. Work through these in order....

Upgrading CubeCart safely: a pre-flight checklist

Most upgrade problems come from skipping one of these. Before Take a full backup of files and...

Products missing from search or category pages

If a product exists in the admin but customers cannot find it, work through these in order. It is...

The correct robots.txt for an online shop

robots.txt tells search engines which parts of your site to crawl. It is easy to write one that...