PC Review


Reply
Thread Tools Rate Thread

cache never expires

 
 
fnustle@gmail.com
Guest
Posts: n/a
 
      26th Jan 2007
Asp.net cache expiration isn't working on the host that I've just moved
to. The cache just doesn't expire. It's not the code because it works
fine on my localhost and at my previous hosting provider.

HttpRuntime.Cache.Insert(XmlCacheKey,ds,null,Cache.NoAbsoluteExpiration,
TimeSpan.FromMinutes(1),CacheItemPriority.Normal,saveData)

I'm using it as a write-back cache that saves the in-memory dataset to
disk every minute if dirty and also on session end, so it's critical
that the cache expires.

I asked my hosting provider if they have disabled expiration using
<cache disableExpiration="false"/> and they said no.

Is there any other reason anyone can think of why the cache won't
expire?

 
Reply With Quote
 
 
 
 
Mark Fitzpatrick
Guest
Posts: n/a
 
      26th Jan 2007
How often is this item being accessed? If it's being accessed at least once
a minute then it won't expire from the cache. I'm just wondering if there is
something that could be scanning a file that makes use of this cached item,
causing it not to drop out of the cache.


--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006




<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Asp.net cache expiration isn't working on the host that I've just moved
> to. The cache just doesn't expire. It's not the code because it works
> fine on my localhost and at my previous hosting provider.
>
> HttpRuntime.Cache.Insert(XmlCacheKey,ds,null,Cache.NoAbsoluteExpiration,
> TimeSpan.FromMinutes(1),CacheItemPriority.Normal,saveData)
>
> I'm using it as a write-back cache that saves the in-memory dataset to
> disk every minute if dirty and also on session end, so it's critical
> that the cache expires.
>
> I asked my hosting provider if they have disabled expiration using
> <cache disableExpiration="false"/> and they said no.
>
> Is there any other reason anyone can think of why the cache won't
> expire?
>



 
Reply With Quote
 
fnustle@gmail.com
Guest
Posts: n/a
 
      27th Jan 2007
Thank you for your reply.

It can't be that because it doesn't expire even when I stop the
application. (normally all cache is expired when application ends)

On Jan 26, 8:10 am, "Mark Fitzpatrick" <markf...@fitzme.com> wrote:
> How often is this item being accessed? If it's being accessed at least once
> a minute then it won'texpirefrom thecache. I'm just wondering if there is
> something that could be scanning a file that makes use of this cached item,
> causing it not to drop out of thecache.
>
> --
>
> Hope this helps,
> Mark Fitzpatrick
> Former Microsoft FrontPage MVP 199?-2006
>
> <fnus...@gmail.com> wrote in messagenews:(E-Mail Removed)...
>
>
>
> > Asp.netcacheexpiration isn't working on the host that I've just moved
> > to. Thecachejust doesn'texpire. It's not the code because it works
> > fine on my localhost and at my previous hosting provider.

>
> > HttpRuntime.Cache.Insert(XmlCacheKey,ds,null,Cache.NoAbsoluteExpiration,
> > TimeSpan.FromMinutes(1),CacheItemPriority.Normal,saveData)

>
> > I'm using it as a write-backcachethat saves the in-memory dataset to
> > disk every minute if dirty and also on session end, so it's critical
> > that thecacheexpires.

>
> > I asked my hosting provider if they have disabled expiration using
> > <cachedisableExpiration="false"/> and they said no.

>
> > Is there any other reason anyone can think of why thecachewon't
> >expire?- Hide quoted text -- Show quoted text -


 
Reply With Quote
 
fnustle@gmail.com
Guest
Posts: n/a
 
      8th Feb 2007
I've further narrowed the problem. What is actually happening is the
cache IS expiring but the callback method saveData is not being
called. Again this works fine in the development environment but not
in the hosting environment.

 
Reply With Quote
 
fnustle@gmail.com
Guest
Posts: n/a
 
      8th Feb 2007
An additional piece of info is that the host environment is win2k3 and
my dev environment is win2k.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cache-control and Expires headers Mike Kraley Microsoft ASP .NET 9 24th Feb 2009 10:03 PM
Extending the size of the temp. internet file cache, and offline webpage cache. Dave Windows XP Performance 1 29th Sep 2004 03:54 PM
Response.Expires and Response.Cache Promenade Microsoft ASP .NET 2 5th Dec 2003 06:41 PM
Re: DNS cache expires, gets lost, ... ?! Serge Morabito Microsoft Windows 2000 DNS 1 15th Aug 2003 01:12 AM
Re: DNS cache expires, gets lost, ... ?! Herb Martin Microsoft Windows 2000 DNS 5 13th Aug 2003 08:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:10 PM.