[Mono-bugs] [Bug 524717] New: CacheDuration should use vary by params

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jul 23 12:52:57 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=524717


           Summary: CacheDuration should use vary by params
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: SLES 11
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web.Services
        AssignedTo: atsushi at ximian.com
        ReportedBy: stuart at cbtnuggets.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us)
AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19

When using CacheDuration it should do caching based on parameters by default.

Reproducible: Always

Steps to Reproduce:
1. Setup a WebService using CacheDuration that takes a parameter and returns a
random number.
2. Call the WebService with two different parameters multiple times within the
CacheDuration.
Actual Results:  
The number returned is the same cached value for both parameters passed in.

Expected Results:  
There should be a cached number for each of the unique parameters passed in.

I have not been able to verify this on an IIS server but here are some of the
websites where I determined the behavior from:

http://msvs2008.blogspot.com/2007_10_01_archive.html

4) Caching Web Service: Like ASP .Net pages, ASP .Net services support output
caching, because on the first request web service has be compiled. The use of
caching for web services is configured on a method-by-method basis through the
use of the WebMethod attribute's CacheDuration property. Caching variation
based on the parameters supplied to the method is supported by default.
<WebMethod (CacheDuration:=30)>

http://www.docstoc.com/docs/7063666/ASPNet-Bible

Output caching works correctly even if the method requires one or more
arguments that can vary between requests.  In this case, the output is cached
for each unique combination of arguments supplied to the method.  If the method
has been called with identical parameters to a previous request, the response
is obtained from the output cache; otherwise, the method is executed normally.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list