473,796 Members | 2,751 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

absolute expiration doesn't expire cache

Hi,

I am using absolute expiration to expire my cache object in Cache API. And I
set it to expire after 60min. Then I test it, it cache, and everything fine.
Then I stop working and lock computer (pc still running), then leave office.
Second day I come to the office and unlock computer, the cache still doesn't
expire! (It already exceed 60min). And I use the cache, and it still
working. And after awhile, the cache start flushing. So I am not sure the
absolute expiration will stop working after i lock the computer. Is it using
absolute time (let's say, i add the cache with absolute expiration set to 10
min at 10:00am, and asp.net will set it expires at 10:10am? or asp.net will
start counting 10min to expire it (and it stop counting when computer is
locked, i guess)?

Thanks,
Dicky Cheng
Nov 18 '05 #1
2 3322
Could you post a sample of your code?

"Dicky Cheng" wrote:
Hi,

I am using absolute expiration to expire my cache object in Cache API. And I
set it to expire after 60min. Then I test it, it cache, and everything fine.
Then I stop working and lock computer (pc still running), then leave office.
Second day I come to the office and unlock computer, the cache still doesn't
expire! (It already exceed 60min). And I use the cache, and it still
working. And after awhile, the cache start flushing. So I am not sure the
absolute expiration will stop working after i lock the computer. Is it using
absolute time (let's say, i add the cache with absolute expiration set to 10
min at 10:00am, and asp.net will set it expires at 10:10am? or asp.net will
start counting 10min to expire it (and it stop counting when computer is
locked, i guess)?

Thanks,
Dicky Cheng

Nov 18 '05 #2
thx for reply, and it's due to my mistake only.
I forget I load the cache item to the asp.net cache in application_sta rt
method. :(

"Todd Seiber" <To********@dis cussions.micros oft.com> wrote in message
news:30******** *************** ***********@mic rosoft.com...
Could you post a sample of your code?

"Dicky Cheng" wrote:
Hi,

I am using absolute expiration to expire my cache object in Cache API. And I set it to expire after 60min. Then I test it, it cache, and everything fine. Then I stop working and lock computer (pc still running), then leave office. Second day I come to the office and unlock computer, the cache still doesn't expire! (It already exceed 60min). And I use the cache, and it still
working. And after awhile, the cache start flushing. So I am not sure the absolute expiration will stop working after i lock the computer. Is it using absolute time (let's say, i add the cache with absolute expiration set to 10 min at 10:00am, and asp.net will set it expires at 10:10am? or asp.net will start counting 10min to expire it (and it stop counting when computer is
locked, i guess)?

Thanks,
Dicky Cheng

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4083
by: Daenil of GL | last post by:
Ok, I am looking for how you make a webpage expire immediately so when you hit refresh, you receive new data. In old ASP, you would just do <% Response.Expires = 60 Response.Expiresabsolute = Now() - 1 Response.AddHeader "pragma","no-cache" Response.AddHeader "cache-control","private" Response.CacheControl = "no-cache" %> Since that no longer works in ASP.NET, I was looking for how you do this
1
2865
by: Guadala Harry | last post by:
AFAIK, when placing an object into the Cache with no special instructions (no dependencies, sliding expirations, hard expirations, etc), it will just sit there in the Cache until the system decides it needs to remove the object to free up memory. (If my understanding so far is wrong, please clarify) What I'd like to know is that if I place an object into the Cache with a sliding expiration - is it possible/likely that the system will...
2
1201
by: Nitin | last post by:
When the user logs out from my user page I don't want him to be able to come bak to that page by pressing the 'Back' button of the browser. i use this code in the page_load event ' Response.Expires = 0 Response.Cache.SetNoStore() Response.AppendHeader("Pragma", "no-cache") ' It doesn't seem to work. Please suggest.
2
1987
by: Kikoz | last post by:
Hi all. I keep my ViewState in server's cache. Works fine except when user leaves the page opened for a long time (2 hours or so). Then if he/she tries to post it back the server throws an exception saying that ViewState was invalid. I suspect it has something to do with cache expiration time. Can I control its expiration time from within my web.config? Or anyhow? Couldn't find anything related in web or machine config files or...
2
2010
by: Timo | last post by:
I've set my aspx page to expire immediately using the management console, HTTP headers tab. Considering this scenario: a user visits the aspx page in question, then moves to another page, then hits the Back button to return to the page in question. At that point, shouldn't the Page_Load event fire for the page since it was set to expire immediately? Thanks Timo
5
1918
by: Frankie | last post by:
Using ASP.NET 1.1 and IIS 6... what is the effect of enabling Content Expiration -- Expire Immediately? Does it cause the files in the virtual directory to be served on every single browser request even if the files do not change? The reason I ask is that I was having trouble with a css file not getting refreshed in the browser after the css file was updated on the server. In testing I found that I could manually update the css file on...
1
1795
by: Sashko | last post by:
Hi, I made an ASP.NET (.NET 1.1) application that uses the Context.Cache object within Global.asax as a static member. It is set up in such a way that whenever the cache items expire, they recache themselves automatically. However, I ran into a problem. It seems like my application ends prematurely (or is recycled or something), usually after the last session is done, and I lose all my Cache saved objects. Next time the
0
1061
by: yashgt | last post by:
Hi, I have a user control MyControl.ascx which appears on various pages in my ASP .NET 2.0 application. I have setup partial-page caching using OutputCache directive so that this control gets cached on each page. However, there is one page Update.aspx which contains the control and has features that update the DB entries that determine the output of the control. I have set SqlDependency so that the control's cache is expired when
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10467
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10244
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10201
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5454
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.