Output Webserver Caching
Above the .NET webservice method name add this line:
[WebMethod(CacheDuration=60)]
In this example, 60 is the number of minutes the method will stay
cached for.
Results for the same passed parameters will stay cached for subsequent
calls until the cache duration expires.
|