On 1/15/07, TT <[EMAIL PROTECTED]> wrote:
"Cake automatically clears specific cache copies when changes are made to the database" This always worried me, since I have a website that has lots of writes (Social model) and it is much more acceptable to show a cached (and slightly out-of-date) version, then to clear the cache after every change to the database. I will take a better look at Cake's source though, perhaps it is possible to influence the caching so it will not be cleared automatically after changes :)
Ah yes...another thread in which I feel compelled to talk about my strong feelings on premature optimization. Here is a suggestion for you: 1) build the application 2) benchmark it's performance 3) profile the code to find out where the slow spots are (valgrind and cachegrind are your weapons) 4) fix any problems 5) go back to 2 Okay, so perhaps I'm simplifying things, and I am trying to be funny here. Until you actual Just Build It, everything else is speculation. You may find that the way CakePHP does things works just fine for your needs after all. But you won't know until you try. To get back to your *specific* problem, I think you might have great success using an external caching solution like memcache to store the results if you're really worried about CakePHP's cache resetting techniques. It will take a little extra code, but then you will have complete control over your caching. But build it first. Really. No, I mean it. Seriously. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digitial photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
