Output cache

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

Is it possible to create OutPutCache vary by folder of the page?

regards,
Simon
 
I'm not sure I understand what you are looking for, simon. I'd think
this would be the same as VaryByParam="none", after all, the page can
only exist in one directory.

Or are you talking about user controls, perhaps?
 
Hi scott,

yes, I have one user control.

Then I have directories for user, manager and for agent.

User control has different functionality, depends on directorie where it
resides.

So, I have 3 different formats of the same user control and I would like
that all 3 are in the cache(they are static).

Is there any way to do that?

regards,
Simon
 
Do they use a Label control, or some other control that the parent
page might set that uniquely identifies the control? If so, I've used
VaryByControl in cases like this.

If nothing else, you can use VaryByCustom to cache by almost any key
you can think of. Inside of the VaryByCustom method you can look at
the request object and return the path where the request is executing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top