absolute expiration doesn't expire cache

Discussion in 'ASP .Net' started by Dicky Cheng, Aug 13, 2004.

  1. Dicky Cheng

    Dicky Cheng Guest

    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
     
    Dicky Cheng, Aug 13, 2004
    #1
    1. Advertising

  2. 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
    >
    >
    >
     
    =?Utf-8?B?VG9kZCBTZWliZXI=?=, Aug 13, 2004
    #2
    1. Advertising

  3. Dicky Cheng

    Dicky Cheng Guest

    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" <> wrote in message
    news:...
    > 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
    > >
    > >
    > >
     
    Dicky Cheng, Aug 16, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dmitry Bond.
    Replies:
    0
    Views:
    543
    Dmitry Bond.
    Aug 31, 2005
  2. martin

    Cache dataset and expire

    martin, Oct 15, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    600
    vMike
    Oct 15, 2003
  3. kurt sune

    Expire IE browser cache, again.

    kurt sune, Oct 17, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    5,742
    kurt sune
    Oct 18, 2005
  4. Frank Rizzo

    How to set output cache to never expire?

    Frank Rizzo, Feb 20, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    2,393
    Joerg Jooss
    Feb 20, 2006
  5. Tongass Park Neighborhood Association, Juneau Alas

    Cookies expire immediately, not when set to expire

    Tongass Park Neighborhood Association, Juneau Alas, Oct 1, 2009, in forum: ASP General
    Replies:
    2
    Views:
    1,253
    SQLDude
    Nov 24, 2009
Loading...

Share This Page