From eadc73c6be11f509889b14c219aeb665db15370c Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 17 Apr 2013 12:25:16 +1200 Subject: [PATCH] Don't warn on slow queries since this is a batch process. --- scripts/archive-old-events.php | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/archive-old-events.php b/scripts/archive-old-events.php index ab19c413..ba542278 100755 --- a/scripts/archive-old-events.php +++ b/scripts/archive-old-events.php @@ -141,6 +141,7 @@ $sqlargs = array( ':archive_dav_name' => $collection_archive ); $qry = new AwlQuery($archive_collection_sql, $sqlargs); +$qry->query_time_warning = 5; // Don't warn on queries unless they take more than 5 seconds. if ( $qry->Exec(__CLASS__, __LINE__, __FILE__) ) { $qry->QDo('SELECT collection_id FROM collection WHERE dav_name = ?', $collection_dav_name ); if ( $qry->rows() != 1 ) { -- 2.11.4.GIT