I'm not expert on caching at this point, need to dedicate some time to it. But sounds like your view might be getting cached.. maybe... possibly...
Try setting debug to 1 or higher and deleting files from \app\tmp\cache\views If I find some time to do some more research in to the situation I will let you know. give it a go, mikee On 13/12/06, Webchemist <[EMAIL PROTECTED]> wrote: > > Hello all. I developed a project based on the CakePHP. But I am > confronted with problem: > 1) an action for updating databese records in a table exists > 2) for building view, get an ID from request, then do aDataArray = > model->findById(ID), pass the array into View. All ok. > 3) do some changes (new text etc.) -> send POST data to the controller > action, then do > model->setId(ID) > model->update(DATA_FROM_POST) > 4) in order to get changed record, do aDataArray = model->findById(ID) > again and pass the array into View. > And now we have the next: > - in the database the record is changed > - in aDataArray the OLD data are holded, in spite of the fact that > findById was called after update. > I am totally discouraged. > Please help to solve! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
