John, Really?? I doubt you do need more information... but I'll play along. The following two selects are summarized versions of what cakephp creates
UserModel -> find() generates: > SELECT * FROM users WHERE > session_hash='thisisanobscurestringwhichcannotbeguessed'; Username comes from the session. ... Then later using that data (in a controller) I need a Model Instance. Right now I have.... $this->User->id = $user_id; $this->set('user', $this->User->read()); Which generates another query... > SELECT * FROM users WHERE id=4; Do you notice how I'm selecting the same data from the database twice? On Mar 19, 4:59 pm, "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > On Mar 19, 2007, at 4:55 PM, rtconner wrote: > > > > > Two different queries... same result.. caching does not help on this > > one. > > > Well, what is the point of having all of this nice Model Class code > > written if I'm not going to use it? Set/Get, Associations, Finds, all > > sorts of Nifty tools I should like to use when needed. > > I think we need to know a little more about what you're after in > order to help out. > > -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---