Hey there! any question in your mind? Ask It Now!.

Popular Categories





Cake PHP : Trying to do element caching

+2 votes
99 views
asked in Programming by krish Expert (6,310 points)
edited by Bhartesh

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
answered by amit_pammu Expert (5,030 points)
edited by amit_pammu
$this->element('categorytree', array(), array(
        "cache" => array('key' => 'categorytree-cache')
    )
);
try this..!> may be it works!

 

Related Questions

+6 votes
2 answers 1,522 views
+3 votes
3 answers 2,427 views
+4 votes
1 answer 875 views
+6 votes
1 answer 236 views
+2 votes
1 answer 136 views
+1 vote
1 answer 60 views
asked in Programming by Brinz
+1 vote
1 answer 180 views
+4 votes
5 answers 713 views
0 votes
1 answer 9,830 views

Not a Member yet?

Ask to Folks Login

My Account
879 Folks are online
79 members and 800 guest online
Your feedback is highly appreciated