My Program's memory usage increses when Model->query() is called. I found out that a cache DboSource->_queryCache is not flushed in source code.
https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/model/datasources/dbo_source.php#L211 In DboSource->query(), DboSource->fetchAll() is called when number of arguments is 1. https://trac.cakephp.org/browser/trunk/cake/1.2.x.x/cake/libs/model/datasources/dbo_source.php#L329 DboSource->fetchAll() has second argument $cache, which default is true. So, whenever DboSource->query() is called with only one argument, caching is always used. And I could not found any code to flush this cache. How do I flush the cache? If there are no method for flushing the cache, I put two proposal: (1) make available to choose whether caching is used or not when DboSource->query() is called. (2) introduce some caching algolithm like LRU to avoid increasing memory infinitely. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
