The performance flags.

Status
Not open for further replies.

twisted1919

Administrator
Staff member
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:
<?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:
PHP:
'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":
PHP:
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 do't care about how many emails a customer sends for example, or if you don't care about the blacklist checks and all.
 
Last edited:
Status
Not open for further replies.
Top