From c153eb122c269d7b00c9db65df85a99d27cde004 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Tue, 23 Apr 2019 18:59:27 +1000 Subject: [PATCH] Change attachment index pagination limit so it doesn't time out --- app/config/core.php | 2 +- app/controllers/attachments_controller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/config/core.php b/app/config/core.php index 43016417..698f73bf 100644 --- a/app/config/core.php +++ b/app/config/core.php @@ -41,7 +41,7 @@ error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED); * In production mode, flash messages redirect after a time interval. * In development mode, you need to click the flash message to continue. */ -Configure::write('debug', 0); +Configure::write('debug', 1); Configure::write('version', '1.0.1'); diff --git a/app/controllers/attachments_controller.php b/app/controllers/attachments_controller.php index 539d50f5..c9935ab9 100644 --- a/app/controllers/attachments_controller.php +++ b/app/controllers/attachments_controller.php @@ -7,7 +7,7 @@ class AttachmentsController extends AppController { var $paginate = array( - 'limit' => 5000, + 'limit' => 500, 'order' => array( array('Principle.short_name' => 'asc'), array('Attachment.name' => 'asc')