> Ever heard of a session?

Ever heard of caching ;)

try:

$data = Cache::read('model.list');
if (empty($data)) {
        $data = $this->Model->find('list');
        Cache::write('data.list', $data);
}

If you don't cache if for too long you won't need to worry about
positively-expiring it when the database is updated, but you will
reduce the load on your server.

http://book.cakephp.org/2.0/en/core-libraries/caching.html

hth

j

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to