> Hi
> I have turned on debug and saw that query is called only one time.
> So when I have tried to call it many times in a loop - it was run
> only in a first call, and for other calls it returned a cached values.
>
> Thank you.
$this->query('some sql', false);
It's not very intuitive but if you do that you end up here:
http://api.cakephp.org/view_source/dbo-source/#l-352
hth,
AD
PS I hope you've already asked yourself "do I really need query for
this" - because 90% of the time the answer is you don't.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment