views:

1885

answers:

4

I want to use cache in CakePHP. How do I use it?

+3  A: 

In the Cache documentation of the manual (1.2): http://book.cakephp.org/view/213/Cache

I would recommend that you disable caching while doing development; you'll find (hopefully not the hard way, like me) that your models and views are not changing as expected.

gravyface
Should note that if you must/want to use caching during development, you can manual clear the cache from your controller: Cache::clear()(see "7.2.6 Clearing the Cache" in the manual).
gravyface
A: 

Check out the /app/config/core.php file.

A: 

check this article: http://islamkhalil.wordpress.com/2010/03/15/cacheing-native-query/

islam