Cake cache essentially useless for web2.0 sites?

2007-02-04 Thread TT
One of the nice features of Cake, is that it offers View-caching. At least, that's what I thought, untill I really wanted to use it. It turns out your controllers are completely bypassed when you use Cake's builtin cache. This has the effect you cannot use any helpers etc that are set from your co

Re: Rapid Developement / Bloated Product?

2007-01-19 Thread TT
> But what I think TT and myself may be looking for is a way of caching > some or all pages for a given time until we give the clear cache > command. For example I may be updating some tables all the time (last > login, homepage views etc etc), but will only want to clear the cache &g

Re: Rapid Developement / Bloated Product?

2007-01-16 Thread TT
Both Chris Hartjes and nate thanks for your replies. @Chris Hartjes : I have already built it (beta version). I totally agree with you that you should not prematurely optimize. I am not sure why you think I would do that :) Actually I already use memcache, apc cache, local array caches, mysql-q

Re: Rapid Developement / Bloated Product?

2007-01-15 Thread TT
"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 ch

Re: Rapid Developement / Bloated Product?

2007-01-15 Thread TT
I would also like to get some more detailed information on optimizing Cake 1.2. For example getting rid of those thee DESC queries and being able to cache parts of a page much easier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: #sql_3e3a_0 for COUNT() queries

2006-12-14 Thread TT
And here is a complete hack if you want custom named values for the table-names (I use derived) function resultSet(&$results) { $this->results =& $results; $this->map = array(); $num_fields = mysql_num_fields($results); $inde

Re: #sql_3e3a_0 for COUNT() queries

2006-12-14 Thread TT
I already found it after digging a bit deeper into mysql/php The cause is this functionality: http://cn.php.net/manual/en/function.mysql-fetch-field.php which is used inside \cake\libs\model\dbo\dbo_mysql.php in function function resultSet() CakePHP retrieves the table-names from MySQL by the m

#sql_3e3a_0 for COUNT() queries

2006-12-14 Thread TT
Dear bakers, for some of my queries I use queries that contain a COUNT() and those are executed directly by execute() or query(). I do something like this: "COUNT(test.id) AS count" But since count does not belong to any Table, it gets assigned some random string in the resulting arra

Re: CakePHP 1.1.11.4064, thawed and redelivered better than before.

2006-12-04 Thread TT
Great work, installed new version right away and everything works just good. Switching to lazy-loading is a good decision. CakePHP makes it already easy enough to program, performance should be another concern and in this case the decision to go for performance is definately the right one. --~-