On Tue, Jun 17, 2008 at 9:24 AM, Nirav Mehta <[EMAIL PROTECTED]> wrote:
> If there are consecutive publications with the same author who is not in > the database, the find statement executes the first time and returns no > record. So a record is created for that author. But for the next record, > though the code exists, the select statement is not executed at all to look > for the author. Is there some kind of caching of SQL results so that if a > find method is called consecutively with the same parameters, the SQL is not > fired again and the old result is returned? This is wrong because in the > meanwhile the table was updated. Anyways, if this is the behavior, how do I > get around it? Seems like you have somewhere somehow set the $model->cacheQueries to true Try var_dump($publicationModel->Authoreditor->People->cacheQueries) just before you execute the find. Also try clearing the cache files in /tmp HTH Tarique -- ============================================================= Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
