From 6aabba3e5563f07038614bb7d6e26ae9cecbfbe0 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Tue, 26 Oct 2010 22:14:59 +0200 Subject: [PATCH] Set memory_limit to 64M and disable debug (and backtraces) in CLI scripts. Signed-off-by: Florent Bruneau --- bin/connect.db.inc.php | 4 ++++ bin/search.rebuild_db.php | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) 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; -- 2.1.4