Cake Caching, Sessions
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 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.