From: Florent Bruneau Date: Tue, 26 Oct 2010 20:14:59 +0000 (+0200) Subject: Set memory_limit to 64M and disable debug (and backtraces) in CLI scripts. X-Git-Tag: xorg/1.1.0~301 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=7fa56f0623f8cf2c637f5f19c41b10a302387e7a;p=platal.git Set memory_limit to 64M and disable debug (and backtraces) in CLI scripts. Signed-off-by: Florent Bruneau --- diff --git a/bin/connect.db.inc.php b/bin/connect.db.inc.php index 22ed0a7..4ecedd8 100644 --- a/bin/connect.db.inc.php +++ b/bin/connect.db.inc.php @@ -19,6 +19,7 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ +ini_set('memory_limit', '64M'); ini_set('include_path', dirname(__FILE__) . '/../core/include:' . dirname(__FILE__) . '/../include:' . dirname(__FILE__) . '/../core/classes:' @@ -28,5 +29,8 @@ require_once('xorg.inc.php'); new Xorg('core'); +// Do not store backtraces +Platal::globals()->debug = 0; + // vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?> diff --git a/bin/search.rebuild_db.php b/bin/search.rebuild_db.php index 7e35247..11220f2 100755 --- a/bin/search.rebuild_db.php +++ b/bin/search.rebuild_db.php @@ -22,9 +22,6 @@ require './connect.db.inc.php'; -ini_set('memory_limit', '16M'); -$globals->debug = 0; // Do not store backtraces - $res = XDB::iterRow('SELECT pid FROM profiles'); $i = 0;