forked from silverstripe-archive/silverstripe-newsletter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.php
27 lines (23 loc) · 854 Bytes
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
* URL rules for the CMS module
*
* @package newsletter
*/
if(!(defined('NEWSLETTER_DIR'))){
define('NEWSLETTER_DIR', basename(dirname(__FILE__)));
}
if (class_exists('MessageQueue')) {
MessageQueue::add_interface("default", array( "queues" => "/.*/",
"implementation" => "SimpleDBMQ",
"encoding" => "php_serialize",
"send" => array( "onShutdown" => "all" ),
"delivery" => array( "onerror" => array( "log" ) ),
"retrigger" => "yes", // on consume, retrigger if there are more items
"onShutdownMessageLimit" => "1" // one message per async process
));
}
//SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH . '/logN.txt'), SS_Log::NOTICE);
//SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH . '/logW.txt'), SS_Log::WARN);
//SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH . '/logE.txt'), SS_Log::ERR);
Session::start();