Wednesday, June 23, 2010

Re: how to disable query caching?

Sorry for my English.
You can do this before executing query, in your model;
$db =& ConnectionManager::getDataSource($this->useDbConfig);
$db->_queryCache = array();
$this->model->query();
But this will clear all cached queries
On Jun 22, 5:21 pm, 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: