The performance flags

The performance flags

There are some flags you can define to disable some of the features of the app (like logging) to improve performance.
If you create a file named performance-levels-custom.php in apps/common/config folder, with following contents:

<?php
define('MW_PERF_LVL', MW_PERF_LVL_DISABLE_DS_LOG_USAGE | MW_PERF_LVL_DISABLE_CUSTOMER_QUOTA_CHECK | MW_PERF_LVL_DISABLE_DS_QUOTA_CHECK | MW_PERF_LVL_DISABLE_DS_CAN_SEND_TO_DOMAIN_OF_CHECK | MW_PERF_LVL_DISABLE_SUBSCRIBER_BLACKLIST_CHECK);

Then it will disable all the features as described below in the definitions:

'MW_PERF_LVL_DISABLE_DS_LOG_USAGE' => 2, // disable delivery server log usage
'MW_PERF_LVL_DISABLE_CUSTOMER_QUOTA_CHECK' => 4, // disable customer quota check
'MW_PERF_LVL_DISABLE_DS_QUOTA_CHECK' => 8, // disable delivery server quota check
'MW_PERF_LVL_DISABLE_DS_CAN_SEND_TO_DOMAIN_OF_CHECK' => 16, // disable checking if can send to domain of the email address
'MW_PERF_LVL_DISABLE_SUBSCRIBER_BLACKLIST_CHECK' => 32, // disable checking emails against blacklist

You don’t have to disable all, you can only “disable delivery server log usage” and “disable delivery server quota check”:

define('MW_PERF_LVL', MW_PERF_LVL_DISABLE_DS_LOG_USAGE | MW_PERF_LVL_DISABLE_DS_QUOTA_CHECK);

Or any other combination of flags.
Please note that you should disable these only if you don’t care about how many emails a customer sends for example, or if you don’t care about the blacklist checks and all.

    • Related Articles

    • Performance improvements

      Here are a few things you can do to improve the performance of your AppMail app: 1. Make sure you have plenty RAM/CPU on your server. Really, you cannot expect to send million emails from your 4GB RAM vps and the server to remain snappy forever. 2. ...
    • Understanding email delivery settings and how they impact performance

      Since there seems to be a huge misunderstanding related to how delivery settings should look like, I think a good explanation is needed. Let’s look at this: So, we have 10 campaigns at once and 100 subscribers at once. What does that mean is that ...
    • 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 ...
    • Sending Groups

      Historically, until version 2.0, when you wanted to send a campaign to more than one list/segment, AppMail would merge the selected lists/segments into a new list and would then send the campaign to that new list. Performance wise, this is a very bad ...
    • Timewarp

      Timewarp is a feature that schedules email campaigns based on each individual subscriber’s time zone, so subscribers receive your scheduled campaigns at the correct time for them. We use the subscriber IP address in order to detect the right user ...