On Wed, May 27, 2009 at 6:05 AM, andreacfm wrote:
>
> Chris is easy,
>
> I want to cache a view and do not have the handler run again when the
> view for which
> hanlder prepare datas is cached.
> That's really unefficient.

In the real world, sometimes we can't avoid doing "bad things" for
"good performance" reasons, but what you're suggesting really seems
like it should be doable within the MVC pattern.

Since you can "stack" views, how about caching the ones that don't
change, and not caching the ones that do?

I'm thinking there's a way to do the thing you're asking about without
mixing controller logic into your view, but I'm not completely sure
without a use-case.

Can you give us a little real-world walk-through of what you are
trying to accomplish?

-- 
The world is not comprehensible, but it is embraceable: through the
embracing of one of its beings.
Martin Buber

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "model-glue" 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/model-glue?hl=en

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to