From 63192c5c398677595fbe8a24cada27dd29310675 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 4 Apr 2013 22:06:16 +1100 Subject: [PATCH] Attachments paginating 5000 at a time --- app/controllers/attachments_controller.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/attachments_controller.php b/app/controllers/attachments_controller.php index fef9ba25..68cee02e 100644 --- a/app/controllers/attachments_controller.php +++ b/app/controllers/attachments_controller.php @@ -4,6 +4,14 @@ class AttachmentsController extends AppController { var $name = 'Attachments'; var $helpers = array('Html', 'Form','Number','Time'); + + var $paginate = array( + + 'contain' => false, + 'limit' => 5000, + ); + + function index() { $this->Attachment->recursive = 1; $this->set('attachments', $this->paginate());