Wednesday, November 2, 2011

Re: CakepHP 2.0 plugins no longer cache in elements

do you mean that the cache is not working as in 1.3?
did you read the migration guide?
cache is now in the third param

<?php echo $this->element('helpbox', array(), array('cache' =>
true)); ?>

@see
http://book.cakephp.org/2.0/en/views.html?highlight=elements#caching-elements

or do you mean you cannot use nocache?
"You cannot use nocache tags in elements. Since there are no callbacks
around elements, they cannot be cached."

On 2 Nov., 19:14, Điển vũ <meotimdi...@gmail.com> wrote:
> Many element can't cache but repeat in many layouts.
> Only me met trouble about this matter ?...

--
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate