2010年8月22日星期日

Re: [fw-mvc] Centralized Stack/Broker or something for Models

I would think there is better performance by storing the data as a
class property. Otherwise, you open/close the same cache file every
time you access the cache from the front controller, controller,
model, etc...

On Sunday, August 22, 2010, Andreas Möller <localheinz@l8m.de> wrote:
>
>> I'm starting to run into this problem
>> quite frequently.
>>
>> 1. Fetch `user` row in a front controller
>> plugin.
>  > 2. Fetch the same `user` row in the
>> controller.
>>  3. Fetch the same `user` row during a Model call.
>
> Cache it.
>
>
> Best regards,
>
> Andreas
>
>

--
Michael DePetrillo
theman@michaeldepetrillo.com
Mobile: (858) 761-1605
www.michaeldepetrillo.com

没有评论: