"Second level cache for Entity Framework 6.1" 实体更改时插件不会清除缓存

"Second level cache for Entity Framework 6.1" plugin doesn't purge the cache when the entity changes

我正在使用 "Second level cache for Entity Framework 6.1",这是一个 Nuget 插件,引用了这些网站的文档: https://blog.3d-logic.com/2014/03/20/second-level-cache-for-ef-6-1/ https://efcache.codeplex.com/

Entity Framework 版本为 6.1.3,MVC 为 5.2。我们使用 Code First 方法和延迟加载。

我设法让它工作(只在第一次触发查询,然后从 InMemoryCache 获取数据),但是内存对象在它或它的一个依赖项被修改时不会重置。

有人试过这个插件吗?您遇到过类似的行为吗?

事实证明,我们正在使用 Glimpse 检查性能。一旦我们删除了 Glimpse,它就开始发挥作用了。