From 2b0a975fef445a656abde9f055dc07f1179aff18 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Fri, 7 Aug 2015 16:25:48 -0400 Subject: [PATCH] Bumped up # of events per API to 100 instead of 25 --- web/api/app/Controller/EventsController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/web/api/app/Controller/EventsController.php b/web/api/app/Controller/EventsController.php index 05a280be3..1afd3be1f 100644 --- a/web/api/app/Controller/EventsController.php +++ b/web/api/app/Controller/EventsController.php @@ -37,7 +37,16 @@ class EventsController extends AppController { 'fields' => array('Name', 'Value') )); $this->Paginator->settings = array( - 'limit' => $limit['ZM_WEB_EVENTS_PER_PAGE'], + // https://github.com/ZoneMinder/ZoneMinder/issues/995 + // 'limit' => $limit['ZM_WEB_EVENTS_PER_PAGE'], + // PP - 25 events per page which is what the above + // default is, is way too low for an API + // changing this to 100 so we don't kill ZM + // with many event APIs. In future, we can + // make a nice ZM_API_ITEMS_PER_PAGE for all pagination + // API + + 'limit' => '100', 'order' => array('StartTime', 'MaxScore'), 'paramType' => 'querystring', 'conditions' => $conditions