Redis Cache Driver v1.2

Redis Cache Driver v1.2
What is Redis?

Redis is a powerful distributed data storage solution that offers high-speed operation by storing data in RAM, which is periodically saved to disk after equal intervals or upon reaching a certain number of queries.

To set up Redis Cache in OpenCart, follow these steps

Install the extension via the OpenCart admin backend, either through Extensions > Marketplace or Extensions > Installer > Upload

Configure the extension by defining several constants in config.php and admin->config.php , depending on your Redis configuration.
The default configuration is as follows:

Default config
// Redis
define('CACHE_HOSTNAME', '127.0.0.1');
define('CACHE_PORT', '6379');
define('CACHE_PREFIX', 'redis_');
define('CACHE_PASSWORD', '');


For Unix socket configuration, use:
// Redis
define('CACHE_HOSTNAME', '/tmp/redis.sock');
define('CACHE_PORT', '0');
define('CACHE_PREFIX', 'redis_');
define('CACHE_PASSWORD', '');

Redis For Opencart 3.x

For OpenCart 3.x, Redis Cache Driver is already included.
This extension provides some fixes and upgrades for it, including the replacement of deprecated methods and password authorization.

To configure Redis for OpenCart 3.x, edit system->config->default.php and change the value of $_[‘cache_engine’] to:

$_['cache_engine'] = 'redisp';

Redis For Opencart 2.2 - 2.3

Edit system->config->default.php change the value of $_[‘cache_type’]

$_['cache_type'] = 'redis';


Redis For Opencart 2.0.x - 2.1.x

Edit index.php and admin->index.php change $cache = new Cache('file');

$cache = new Cache('redis');


Redis For Opencart 1.5.x

Upload the archive to the root directory

Edit index.php and admin->index.php change $cache = new Cache('file');

$cache = new redis_cache();

After require_once(DIR_SYSTEM . 'library/cart.php'); add

require_once(DIR_SYSTEM . 'library/redis_cache.php');

or If you are using vqmod add

require_once(VQMod::modCheck(DIR_SYSTEM . 'library/redis_cache.php'));

Free installation service
If you need help with installation just press the "Get support" button and we will do it for you.




Price
$20.00

  • Developed by OpenCart Community
  • 12 Months Free Support
  • Documentation Included

Rating

Compatibility
3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.0, 3.0.3.1, 3.0.3.2, 3.0.3.3, 3.0.3.5, 3.0.3.6, 3.0.3.7, 3.0.3.8, 3.0.3.9, 1.5.5.1, 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2

Last Update
29 Nov 2023

Created
1 Jun 2019
107 Sales
5 Comments
Simple-OpenCart
Simple-OpenCart
Member since: 12 Jun 2014

View all extensions Get Support