I use shared host开发者_如何学编程ing. I have set my page to be cached indefinitely. The page gets cached after the first request. However on the next day when I visit my site it is no longer in the cache and has to be regenerated.
What is happening? Is the hosting removing my pages from the cache? Or something else?
Any ideas?
There aren't a lot of details to go off of here, but here's a few ideas:
- IIS by default will recycle the app pool every 29 hours or so, which resets at least the System.Web.Caching caches.
- Perhaps memory or disk spaced is limited (or configured to be limited.) Many caches are designed to kick out old items when memory is needed for something else.
精彩评论