473,406 Members | 2,713 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.

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 3298
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_start
method. :(

"Todd Seiber" <To********@discussions.microsoft.com> wrote in message
news:30**********************************@microsof t.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
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 =...
1
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...
2
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 '...
2
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...
2
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...
5
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...
1
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...
0
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...
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
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...
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
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
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
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
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.