1. Home
  2. General info
  3. Using Redis for cache and mutexes

Using Redis for cache and mutexes

Since Mailwizz 1.5.0 is possible to use Redis for the cache and mutex components.

In order to do this, after you install and setup redis, you have to open the apps/common/config/main-custom.php file and add the following components into it:

 

'components' => array(
	'db' => array(
	    'connectionString'  => 'mysql:host=...;dbname=...',
	    'username'          => '...',
	    'password'          => '...',
	    'tablePrefix'       => '...',
	),
	// ADD REDIS FOR CACHE/MUTEX START
	'cache' => array(
	    'class' => 'common.components.cache.RedisCache',
	),
	'mutex' => array(
	    'class' => 'common.components.mutex.RedisMutex',
	),
	// ADD REDIS FOR CACHE/MUTEX END
),

Was this article helpful?

Related Articles