Cake Caching, Sessions

Posted on 2010/07/03 by Randall.
Categories: Uncategorized.

Far too much trouble to get the caching stuff working properly. Don’t get me wrong, I like Cake quite a bit, but it does have some rough patches. I find that I need to go looking into its source code quite a bit. That’s fine, the source is very nice and easy to read. They’ve done a fine job.

I eventually disabled caching across the board. The tags weren’t really working for me. I also saw questionable results when using the array('cache'=>false) argument for my $this->element() calls.

With Cake you often have many different ways to do the same thing. For instance, you can use $this->Model->recursive = -1 to limit the depth of results returned from a find() query. Or you can use the Containable behavior.

The lesson of the day thus far, without a doubt…do not ever forget this lesson. Call $this->Session->destroy() in your logout() routine.

no comments yet.

Leave a comment

Names and email addresses are required (email addresses aren't displayed), url's are optional.

Comments may contain the following xhtml tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>