Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2005

Tip: Looking for answers? Try searching our database.

CacheDuration not working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jonel@glenavon1.demon.co.uk - 26 Aug 2005 11:23 GMT
I have the CacheDuration attribute set for 60 seconds as show below:

   <WebMethod(CacheDuration:=60, Description:="Method to demonstrate
caching")> _
   Public Function CachedString(ByVal inputInt As Integer) As String
       Return "The time is " & DateTime.Now.ToLongTimeString
   End Function

When I invoke this page from IE using the same parametr in case then
caching does not appear to be working.

Do I have to enable caching elsewhere?

Regards

John L
delly_jm - 26 Aug 2005 21:08 GMT
I have done testing with Application Test Center and made requests on cached
methods and database query methods without caching and the response is almost
the same. Not much benefit if the caching was supposed to be on.

Seems others have been having the same issue (including myself)...maybe we
can follow the post below and see if there's any feedback. A Microsoft MVP
has it now.
http://www.dotnet247.com/247reference/msgs/56/284168.aspx

Delton

> I have the CacheDuration attribute set for 60 seconds as show below:
>
[quoted text clipped - 12 lines]
>
> John L

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.