473,394 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

CacheDuration not working

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
Nov 23 '05 #1
1 3108
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/247referenc...56/284168.aspx

Delton
"jo***@glenavon1.demon.co.uk" wrote:
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

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: usamedb208 | last post by:
Hello. I have a web method that make a call to database. I set cacheDuration attribute to 0, -1,1, anything but it caches results every time when I make a call to this web method with the same...
5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
0
by: Rob C | last post by:
Hi, I was implementing a simple example of a web service that uses caching: public String CachedString(int input) { return "The time is " + DateTime.Now.ToLongTimeString(); } When I use...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
3
by: archana | last post by:
hi all. I am having one web service in c#.net where in i am using cacheduration. I have one property as below: get {
0
by: Arpan | last post by:
I successfully created a DLL named "DBServices.dll" using the following code in a class file: Imports System Imports System.Data Imports System.Data.SqlClient Imports System.Web.Services ...
0
by: archana | last post by:
Hi all, I am developing one web service and i want to use caching in that. I set cacheduration as 60 seconds. So what i am expecting is withint 60 second if i recalled method it should give...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.