2012-03-20 64 views

回答

0

只需设置你的模型的cacheQueries为true,蛋糕将完成剩下的自动

http://book.cakephp.org/1.3/view/1069/cacheQueries

例如,在/models/user.php :

class User extends AppModel { 
    public $cacheQueries = true; 
+0

这只会缓存查询结果的特定请求本身,因此不为多个请求提供缓存查询。 – 2014-02-06 12:37:12

0

检查this ...这将有助于设置动态捕捉,而当我们要使用这个......