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 still don't get any output?!
is my syntax still wrong?
On 16 Dez., 17:04, Tilen Majerle <[email protected]> wrote:
> 'config' key is not time, config key is config_name, you have to create
> custom config with Cache::config() or use 'default' config
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/12/16 heohni <[email protected]>
>
>
>
>
>
>
>
> > Hi,,
>
> > so you mean like this:
> > <?php echo $this->element('tabelle', array(), array('cache' =>
> > array('config' => '+1 day', 'key' => 'tab'))); ?>
>
> > Funny, but this is hiding the complete output, my page is empty?
>
> > On 16 Dez., 16:35, Tilen Majerle <[email protected]> wrote:
> > > 3rd parameter in element for cake 2.0 is for options, 2nd is just for
> > > variables
>
> > > and there is not 'time' key for cache
>
> > > use $this->element('elementName', array(), array('cache' =>
> > array('config'
> > > => 'your_cache_config', 'key' => 'you cache key'));
>
> > > --
> > > Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> > > 2011/12/16 José Lorenzo <[email protected]>
>
> > > > Is that in CakePHP 2.0?
>
> > > > --
> > > > Our newest site for the community: CakePHP Video Tutorials
> > > >http://tv.cakephp.org
> > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp
> > > > others with their CakePHP related questions.
>
> > > > To unsubscribe from this group, send email to
> > > > [email protected] For more options, visit this
> > group
> > > > athttp://groups.google.com/group/cake-php
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://groups.google.com/group/cake-php
--
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