Hi all, I have a habit of doing a debug($this) to view the different variables that is accessible to my controller's method. What I notice is that whatever my controller have in the $uses array is loaded into memory (the different models and their variables).
The question is how can I limit the memory consumption of my controllers? I do not use all the models in the $uses array in all my methods all the time. And I had at times experience failure in the scripting exhasting the avaliable 8MB of memory as defined in PHP.ini Is it safe to unset those varaibles (aka model) that the method is not using? Is there anyway to define the $uses array dynamically on the fly? Currently I am at 1.1.11. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
