if ($allow_maintenance) { $api = new Maintenance(); $status = $api->clearImportFiles(); if (!$status) { trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to clear old import files', E_USER_NOTICE); } $status = $api->pruneExportQueries(); if (!$status) { trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to clear export queries from the queue table', E_USER_NOTICE); } //@TODO: All /*$status = $api->clearOldSession(); if (!$status) { trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to cleanup old session files', E_USER_NOTICE); }*/ //--- $status = $api->pruneErrorLog(); if (!$status) { trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to clear error log entries', E_USER_NOTICE); } $status = $api->clearEmptySubscriberData(); if (!$status) { trigger_error(__FILE__ . '::' . __LINE__ . ' -- Unable to clear empty subscriber_data records', E_USER_NOTICE); } }