Tuesday, June 22, 2010

Re: how to disable query caching?

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.

On 22 Чер, 20:22, Miles J <mileswjohn...@gmail.com> wrote:
> What do you mean its "cached"? What is it doing exactly.
>
> On Jun 22, 7:21 am, Dmitry Shevchenko <dmitr...@gmail.com> wrote:
>
>
>
> > Hi !
> > Is there any way to disable caching for $this->model->query()
> > I have used
> > $this->MyModel->cacheQueries = false;  and same setting in model   var
> > $cacheQueries = false;
> > but seems that this isn't work
>
> > Does anyone knew some workaround for this?
> > p.s. I use CakePHP 1.2.5
>
> > Thanks for your help.

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: