diff --git a/phpgwapi/cron/asyncwrapper.php b/phpgwapi/cron/asyncwrapper.php index a382bbb7a8..09ad0091e6 100644 --- a/phpgwapi/cron/asyncwrapper.php +++ b/phpgwapi/cron/asyncwrapper.php @@ -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]); } } diff --git a/phpgwapi/inc/class.asyncservice.inc.php b/phpgwapi/inc/class.asyncservice.inc.php index a65a92ddad..c2c5cb3ecd 100644 --- a/phpgwapi/inc/class.asyncservice.inc.php +++ b/phpgwapi/inc/class.asyncservice.inc.php @@ -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 "
Installing: '$cronline'
\n"; fwrite($crontab,$cronline); }