Caching with Memcache(d)
Memcache can have a massive performance increase on small stores with lots of memory.
It's a trade off between taking up less space or eating up more CPU cycles.
Be sure to check your phpinfo() has 'Memcahe' enabled before making this change.
Opencart 2.3 simple edit: system/config/default.php$_['cache_type'] = 'file'; // apc, file or mem $_['cache_expire'] = 3600;
To use Opencart with PHP7.0 you will need to make changed to Memcache to Memcached
Upload below class to: system/library/cache/memcached.php
Then set the above cache_type to 'memecached'. Also recommend adding a way of clearing the cache manually especially if you're using non file stored cache.
- Older version than 2.3 require small changes.
- Add below code to: config.php AND admin/config.php
define('CACHE_DRIVER', 'mem'); // 'file', 'apc' or 'mem'
- Edit index.php AND admin/index.php
$cache = new Cache('file');
$cache = new Cache(CACHE_DRIVER);