Groups | Blog | Home
all groups > asp.net webservices > april 2004 >

asp.net webservices : Cache?



Chris
4/30/2004 9:01:09 AM
Hi

I'm new to web services but have done a bit with web applications
Is there a cache in web services as in web applications
I want to read in some variables that will live for ever but I don't want to have to read them every time some connects to the web service

Thanks in advance

Mickey Williams
4/30/2004 10:21:32 AM

[quoted text, click to view]
to have to read them every time some connects to the web service.

Yes - but the cache doesn't work unless you have a real SOAP message - you
won't hit the cache if you're using the not-quite-SOAP-test-page. Add a
CacheDuration property to your WebMethod attribute.

--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
www.servergeek.com

AddThis Social Bookmark Button