Re: CakepHP 2.0 plugins no longer cache in elements

2011-12-16 Thread heohni
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

Re: CakepHP 2.0 plugins no longer cache in elements

2011-12-16 Thread Tilen Majerle
yes, you create config with name 'short' and you use config with key 'long' in your view for me, in cake 2.0.4 cache works fine ! -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/16 heohni heidi.anselstet...@consultingteam.de If I put this into bootstrap: Cache::config('short',

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển vũ
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

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread euromark
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

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển vũ
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 not can't use it . I see it is harder to cache

Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển vũ
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

CakepHP 2.0 plugins no longer cache in elements

2011-11-01 Thread Điển vũ
CakepHP 2.0 plugins no longer cache in elements. Is it harder to code ? I use nocache a lots in cakephp 1.3. -- 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