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
> 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
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
"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
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
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
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
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
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.
--~-