From 6b1a4ecd41ef6cbb9154ceec541b33322bad2dfc Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 22 Jan 2013 20:07:34 +0400 Subject: updaterandomfeed: use max_execution_time parameter --- classes/rpc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/rpc.php') diff --git a/classes/rpc.php b/classes/rpc.php index 0e93cd32a..b4afc6023 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -699,7 +699,7 @@ class RPC extends Handler_Protected { while ($line = db_fetch_assoc($result)) { $feed_id = $line["id"]; - if (time() - $tstart < 30) { + if (time() - $tstart < ini_get("max_execution_time") * 0.7) { update_rss_feed($this->link, $feed_id, true); ++$num_updated; } else { -- cgit v1.2.3-54-g00ecf