473,396 Members | 1,827 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,396 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 4591
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: 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
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...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.