performance-levels.php

Jamie Whittingham

Active Member
Could the MW team please explain the following?

$performanceLevels = array(
'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,
// since 1.3.6.2
'MW_PERF_LVL_DISABLE_NEW_BLACKLIST_RECORDS' => 64, // do not save new emails in the email blacklist,
'MW_PERF_LVL_DISABLE_CUSTOMER_NEW_BLACKLIST_RECORDS' => 128, // do not save new email in the customer email blacklist,
'MW_PERF_LVL_ENABLE_SUBSCRIBER_FIELD_CACHE' => 256, // whether to force using the subscriber field cache feature.
);

What do the numbers mean and how to disable one of those setting?

thanks
 

Jamie Whittingham

Active Member
@twisted1919

So I following that how-to

but i still see this in --verbose=1

[2017-04-03 22:28:29] - Checking if we can send to domain of lewismettlen24@gmail.com...
and
[2017-04-03 22:29:08] - Checking if the server is over quota...

Here is the contents of the file

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

thanks
 

twisted1919

Administrator
Staff member
That's correct, it will still echo but won't do the check. The echo is for us to see what's going on.
 

twisted1919

Administrator
Staff member
Top