1. Home
  2. Common issues
  3. 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.

Was this article helpful?

Related Articles