473,406 Members | 2,208 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,406 software developers and data experts.

C# ASP.NET page cache getting removed too soon

Oh Wise Ones - I need your help. Does anyone know what I can troubleshoot to see why an IIS 6.0 server (not clustered) will not hold this cache for the required 16 hours? It runs fine on our dev server and on my dev box.

_callingPage.Cache.Insert("SAPDS_Cache", ds, null, DateTime.Now.AddHours(16), System.Web.Caching.Cache.NoSlidingExpiration, System.Web.Caching.CacheItemPriority.NotRemovable, RemovedCallback);

The async callback (removedcallback) tells me the cache name with the reason being "removed".

Real bummer, users trying to test are tweaked.
Oct 2 '07 #1
3 4592
Plater
7,872 Expert 4TB
Doesn't:
System.Web.Caching.Cache.NoSlidingExpiration,

mean that it should ignore future cache updates to that object and continue with the first cache statement? So if you load the page it goes "16 hours from now, expire" and every future load of that page will ignore the cache statements until it expires?

Also, unles you have a proxy server, caching is done on the client end, not the server end.
Oct 2 '07 #2
Actually this is asp.net cache and it's server side. There are two ways to configure the page.cache.insert statement, one is with sliding cache and the other is the way I did it, which expires at a point in time. I should note the server has plenty of memory so It's not garbage collecting, just removing it for some reason.
Oct 2 '07 #3
I figured this out. In IIS 6.0 the application pools can be configured to "clean up" worker threads. Well, that is exactly what it was doing. Right click on the application pool running your site, choose the performance tab, clear the checkbox for idle timeout or bump up the minutes to something you think appropriate for memory consumption by your site. You will need to be aware of how much memory is available on the box etc...
Oct 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Timo | last post by:
I'm trying to make a thread safe object cache without locking. The objects are cached by the id of the data dict given in __new__. Objects are removed from the cache as soon as they are no longer...
13
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks...
3
by: Alex | last post by:
Hi I am opening an xml file into a dataset and then converting it to a namevaluecollection and then saving the collection in the cache for use later. The cache dependency is set to the xml...
0
by: J | last post by:
Here is the code that I tried with no luck. Even though the cache is not saved, the page still appears but goes to the server to get the page instead of local cache. When it comes back to the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
3
by: Emily | last post by:
I have three asp pages. The initial page is login.asp, it goes to page hello.asp. And hello.asp goes to page another.asp. If it goes back from hello.asp to login.asp, then in Internet Explorer,...
0
by: itfetish | last post by:
We have a web parts intranet at our office here I have been working on. I have been trying to create a way of getting our OCE TDS 600 plotter queue to be a web part on the page, seeing as their...
5
by: =?Utf-8?B?Y2hlY2tyYWlzZXJAY29tbXVuaXR5Lm5vc3BhbQ== | last post by:
I have a site which I secure with forms authentication. When the user's sign on and hit one of the secure pages, I have this line in my code to ensure that the browser does not cache the page;...
2
by: Peter | last post by:
Hi The documentation for System.Web.Caching.Cache states that it is "thread safe". Does this mean that if I access System.Web.Caching.Cache from several places in my application access to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.