mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:20 +01:00
setting NO memory limit for async service
This commit is contained in:
parent
b51c248768
commit
bb5000d526
@ -18,6 +18,7 @@ foreach(file($path_to_egroupware. '/header.inc.php') as $line)
|
||||
{
|
||||
if(preg_match("/GLOBALS\['egw_domain']\['(.*)']/", $line, $matches))
|
||||
{
|
||||
system($php. ' -q -d memory_limit=64M '.$path_to_egroupware.'/phpgwapi/cron/asyncservices.php '. $matches[1]);
|
||||
// -d memory_limit=-1 --> no memory limit
|
||||
system($php. ' -q -d memory_limit=-1 '.$path_to_egroupware.'/phpgwapi/cron/asyncservices.php '. $matches[1]);
|
||||
}
|
||||
}
|
||||
|
@ -29,6 +29,12 @@ class asyncservice
|
||||
var $db;
|
||||
var $db_table = 'egw_async';
|
||||
var $debug = 0;
|
||||
/**
|
||||
* Line in crontab set by constructor with absolute path
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $cronline = '/phpgwapi/cron/asyncservices.php default';
|
||||
|
||||
/**
|
||||
* constructor of the class
|
||||
@ -676,7 +682,8 @@ class asyncservice
|
||||
{
|
||||
$cronline .= (isset($times[$cu]) ? $times[$cu] : '*') . ' ';
|
||||
}
|
||||
$cronline .= $this->php.' -qC '.$this->cronline."\n";
|
||||
// -d memory_limit=-1 --> no memory limit
|
||||
$cronline .= $this->php.' -q -d memory_limit=-1 '.$this->cronline."\n";
|
||||
//echo "<p>Installing: '$cronline'</p>\n";
|
||||
fwrite($crontab,$cronline);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user