.NETGURU
Fragment Caching Strategy
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngcache' list.


SRoche@uk.imshealth.com
Hi,

In a common Content Management solution, content is created in a back-end
application
and cached in the front end. Meanwhile, if the content is changed in the
back-end, the user
is able to selectively flush this content (ie. remove it from the cache) in
order for the
new version to be displayed. (That's how we do it in Vignette !)

After looking at the fragment caching in .NET, I can't see an obvious way to
achieve this. Basically
I want a page in the back end that lists the cached user controls in the
front end that I want to flush.
The problem is, however, that I have no control over the key used for my
user control in the cache, even
more so when it is varied by a parameter and there is more than one.

What is the recommended approach in this case ? Do I have to use object
dependencies in the
cache where I create a reference to the control with a key that I specify ?
Its all very well putting
things in the cache, but if you don't know how to reference them you can't
selectively flush them !

Any comments/suggestions much appreciated.

Steve...

Reply to this message...
 
    
=?iso-8859-1?Q?Jo=E3o?= Pedro Martins

[Original message clipped]

Here's the way I'm doing it:

I'm using a system of FileDependency's (HttpResponse.AddFileDependency).
The backoffice application updates the date (in unix we'd call it "touch")
of a file that represents the information (for example:
_cachedependencies/articles/id1234).
the ASPX/usercontrols automatically updates when this is changed.

j

Reply to this message...
 
 
System.Web.HttpResponse




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification