I had the same issue when fetching image data from database and showing
multiple of them on the same page. Unsetting may be necessary but you
should also disable query caching for the continous fetching from
database. It took my 2 days to find this out and I hope it saves some
of your time.. Something like this:
// disable query caching for this model
$cacheQueries = $this->Model->cacheQueries;
$this->Model->cacheQueries = false;
// do your database operations..
// restore original setting..
$this->Model->cacheQueries = $cacheQueries;
leo.cacheux wrote:
> It works fine when I change the php.ini settings, unfortunately, the
> software I'm working on will be executed on a mutualised server, and I
> don't know if this file will be accessible.
> I tried to use "unset" to free memory but it didn't worked.
>
> Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---