Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > outputcache limitations?

Reply
Thread Tools

outputcache limitations?

 
 
Vassilis T. via .NET 247
Guest
Posts: n/a
 
      10-17-2004
The following piece of code, when on a heavily loaded server (more than 50 ASP.NET pages, most using outputcache with varybyparam, lots of users), will only cache the string - the output is not cached, as if the outputcache is ignored.
There is available RAM on the server.
Other pages are cached as expected.
On the development environment and on a test server, it works fine.

Are there any limitations to the .NET caching, apart from RAM availability? Should I reduce caching time on other pages, or remove caching from some pages to resolve the problem?

TIA


<%@ OutputCache Duration="10" VaryByParam="none"%>
<%
Response.write("outputcache:" & datetime.now.tostring("s") & "<BR>")
Dim atest As String
if cache("atest") is nothing then
atest=DateTime.Now.ToString("s")
Cache.Insert("atest",atest,nothing,DateTime.Now.Ad dSeconds(20),Cache.NoSlidingExpiration,CacheItemPr iority.High,nothing)
else
atest=cache("atest")
end if
response.write("atest string:" & atest)
%>

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>WKyX1MWf10yQJuroxW6d6A==</Id>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Control, @OutputCache, and varying the cache by property value Tom Kiefer ASP .Net 6 02-10-2004 04:18 AM
@ OutputCache in usercontrol problem marshal ASP .Net 3 08-07-2003 07:26 AM
Re: Programatically remove @OutputCache Teemu Keiski ASP .Net 0 07-02-2003 08:49 AM
Re: Programatically remove @OutputCache Natty Gur ASP .Net 0 06-26-2003 02:58 AM
Re: Programatically remove @OutputCache Stewart ASP .Net 4 06-26-2003 02:44 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57