Using Redis for cache and mutexes
Since AppMail 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
),
Related Articles
Clear cache command
The way AppMail works in most cases where performance is important, is that it fetches the data from the database once, then it will store it in cache and serve it from there for as much as possible. This allows AppMail to perform fast because data ...
Campaign grid stats cache warmup command
Starting with version 2.1.2 we introduced the campaign-grid-stats-cache-warmup command which will keep up-to-date the cache for the stats shown in the campaigns grid view. The command has the following signature: command: /usr/bin/php -q ...
Using Sparkpost, I get a “Forbidden” error message when I try to validate the delivery server
The error message can look like: Cannot send the confirmation email using the data you provided. Here is a transcript of the error message: Forbidden. This happens because when you have created the SparkPost Api key, you haven’t checked all the ...
The correct way to add a link using the wysiwyg editor
We’re using CKEditor as our wysiwyg editor throughout the application. When adding a link using CKEditor, the easiest way is to simply select the text you want to set a link onto: then click the link icon from CKEditor’s toolbar: Which will open the ...
Failed to authenticate on SMTP server with username "XYZ" using 2 possible authenticators
If you know the login credentials are fine, but you still get this error, then you should: 1) Go into Backend -> Miscellaneous -> PHP Info and search for "Registered Stream Socket Transports" and make sure it contains at least "tls, tlsv1.0, tlsv1.1, ...