我有一个虚拟路径提供程序.问题是它缓存我的文件.每当我手动编辑其中一个aspx文件时,它引用VPP不会拉入新文件,它会继续重用旧文件,直到我重新启动站点.
我甚至在我的VirtualPathProvider类中过度使用了GetCacheDependency():
public override CacheDependency GetCacheDependency(string virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart)
{
return null;
}
Run Code Online (Sandbox Code Playgroud)
想法?