+2 votes
245 views
in Programming by Expert (6.4k points)
edited by

I am Trying to do element caching in cake php this is my code , can you tell me

whats wrong here, When i refreshed page no caching was done.

 

echo $this->element('categorytree', array( 'cache' => array( 'key'=>'categorytree-cache','time' => '+1 hour' ) ))


Thanks for you answer in advance.

1 Answer

0 votes
by Expert (5.1k points)
edited by
$this->element('categorytree', array(), array(
        "cache" => array('key' => 'categorytree-cache')
    )
);
try this..!> may be it works!

 

Not a Member yet?

Ask to Folks Login

My Account

Your feedback is highly appreciated