Model-Glue just needs to know the name of the parameters. If you have a
cached content for productID, It'll look for productID and make a new cache
entry per unique key value.

This means, productID=1 would be one entry in the cache, and productID2
would be another cache entry.


DW

On Wed, Jan 13, 2010 at 8:32 PM, jeff <[email protected]> wrote:

> Do you need to know the VALUE of the url parameter, or just the
> name.
>
> For example, if we wanted to cache event=people&personID=5
>
> Would I have to know in advance that 5 was the value, or would i just
> supply personID and it would account for that?
>
> On Jan 13, 4:28 pm, Dennis Clark <[email protected]> wrote:
> > If the output of a cached event depends on input parameters, those
> > parameters must be listed in the cacheKeyValues attribute of the
> > event-handler. Otherwise a cached response for the event may be used for
> > subsequent requests for that event even when the parameters are
> different.
> >
> > Cheers,
> >
> > -- Dennis
> >
> > On Wed, Jan 13, 2010 at 7:08 PM, jeff <[email protected]> wrote:
> > > so a cache="true" added to an event handler will cache it in MG3?
> >
> > > How does that affect events that accept lots of url parameters, a
> > > directory of people?
> >
> > > On Jan 13, 4:01 pm, Dennis Clark <[email protected]> wrote:
> > > > Sorry, there is no builtin mechanism for caching rendered events in
> MG2.
> > > > Caching rendered events was a feature introduced in MG3. It's covered
> in
> > > the
> > > > Wiki:
> >
> > > >http://docs.model-glue.com/wiki/HowTos/HowToUseContentCaching
> >
> > > > -- Dennis
> >
> > > > On Wed, Jan 13, 2010 at 6:24 PM, jeff <[email protected]>
> wrote:
> > > > > I guess what I am REALLY looking for is a way to cache an entire
> > > > > rendered event, so that all the broadcasts and everything will be
> > > > > skipped if we have something already stored in cache.
> >
> > > > > On Jan 13, 3:04 pm, jeff <[email protected]> wrote:
> > > > > > Is there a way to cache a rendered view (basically an event with
> url
> > > > > > params) in model glue unity.  I've heard mentions of this in MG3
> > > > > > (url??), but cannot find anything concrete for mg2
> >
> > > --
> > > Model-Glue Sites:
> > > Home Page:http://www.model-glue.com
> > > Documentation:http://docs.model-glue.com
> > > Bug Tracker:http://bugs.model-glue.com
> > > Blog:http://www.model-glue.com/blog
> >
> > > 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]<model-glue%[email protected]>
> <model-glue%[email protected]<model-glue%[email protected]>
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/model-glue?hl=en
>
> --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> 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]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>



-- 
“Come to the edge, he said. They said: We are afraid. Come to the edge, he
said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes
-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

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

Reply via email to