Hello,
i have an ASP.NET application that needs to check a database daily and send emails.
I am using cache item expire to do that, on my localhost everything works fine but on my shared hosting server the CacheItemRemovedCallback events doesnt fire.
The code that works on my localhost is :


'test code, set to expire after 1 minute
onRemove = New CacheItemRemovedCallback(AddressOf CacheItemRemovedCallback)

HttpContext.Current.Cache.Insert(DummyCacheItemKey, "SendEmail", Nothing, DateTime.Now.AddSeconds(60), Cache.NoSlidingExpiration, CacheItemPriority.Normal,onRemove)

Could be something that blocks this code on my shared hosting sever?

Thank you!