Cache getting deleted

Sep 22, 2015 at 6:59 PM
Hi,

I have implemented EFCache in my project. I set the AbsoluteExpiration to 24 hrs. Still, after few clicks whatever the query results that were cached are getting deleted and added again. Not sure what's the problem is.

Is there a way to locate where could be possible issue is?

Thanks
Ratnakar
Sep 23, 2015 at 12:15 AM
Hi Ratnakar,

If you insert into/update/delete from a table which was part of the query for which results were cached the results will be invalidate since they may not longer be up to date.

Thanks,
Pawel
Sep 23, 2015 at 5:44 AM
Those are master tables which never gets modified.
Oct 5, 2015 at 5:00 AM
Is there any other way the cache gets invalidated?
Oct 9, 2015 at 9:10 PM
No, I don't think so. If you have a small and contained repro I could take a look.

Thanks,
Pawel