Please wait...

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
),