Caching doesn't work on production server!

Last post 09-28-2005 5:13 PM by Ninjamyst. 3 replies.

Sort Posts:

  • Caching doesn't work on production server!

    09-28-2005, 10:34 AM
    • Participant
      972 point Participant
    • Ninjamyst
    • Member since 07-26-2005, 12:58 PM
    • Posts 197
    I am using lots of caching for my web application and everything works fine when running in debug mode on my local machine.  However, when the web application is published to a production server, cache items are removed as soon as they are added.  Is there something special I need to set in the web.config file or on the server to enable caching? 
  • Re: Caching doesn't work on production server!

    09-28-2005, 1:41 PM
    • Participant
      972 point Participant
    • Ninjamyst
    • Member since 07-26-2005, 12:58 PM
    • Posts 197

    I set the Cache items to NonRemovable and it seems to work fine.  HOWEVER, now it's invaliding my output cache all the time.  Is there a way to set the Priority for output caching?

  • Re: Caching doesn't work on production server!

    09-28-2005, 3:41 PM
    • Contributor
      5,370 point Contributor
    • JawadKhan
    • Member since 03-09-2005, 12:41 AM
    • Toronto, Canada
    • Posts 1,066
    You are using ASP.Net v 2.0 since Non Removable option is available only in 2.0.
    It seems your Application is restarting quite often resulting in loss of Cache. Look at ASp.Net worker process throught he Task manager and make sure that its not restarting often.

       Its hard to say any thing else without looking at the code.
  • Re: Caching doesn't work on production server!

    09-28-2005, 5:13 PM
    • Participant
      972 point Participant
    • Ninjamyst
    • Member since 07-26-2005, 12:58 PM
    • Posts 197
     JawadKhan wrote:
    You are using ASP.Net v 2.0 since Non Removable option is available only in 2.0.
    It seems your Application is restarting quite often resulting in loss of Cache. Look at ASp.Net worker process throught he Task manager and make sure that its not restarting often.

       Its hard to say any thing else without looking at the code.


    I don't think the application is restarting since the data cache is fine.  Checking the task manager, I see that the server's memory is being used up by another process (SQLSERVER) so the system is probably throwing away my cache to free resources.  By setting the data cache items to NonRemovable, I ensure the system won't throw away my data cache.  Is there a similar option for output cache?  The server has over 2 gig of ram so it should be able to handle everything I throw at it. 
Page 1 of 1 (4 items)