If I put this into bootstrap:
Cache::config('short', array(
    'engine' => 'File',
    'duration' => '+10 hours',
    'path' => CACHE,
    'prefix' => 'long'
));

and in my view:
<?php echo $this->element('tabelle', array(), array('cache' =>
array('key' => 'tab', 'config' => 'long'))); ?>

I don't get any output?!

is my syntax still wrong?

On 2 Nov., 20:51, Điển vũ <[email protected]> wrote:
> No, i mean:
> You cannot use nocache tags in elements. Since there are no callbacks
> around elements, they cannot be cached.  
> (http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html)
> I can use <cake:nocache> in elements with cakephp 1.x but can't with cake
> 2.x
> I see it is harder to cache ....

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to