I have implemented a VirtualPathProvider. The VirtualPathProvider reads the view from File system.
However my problem is the method GetFile(string virtualPath)
is not executed every time for every request. I think it is related to the caching, isn't it? What I want is getting file every time for every request. Because for some cases, the page in the file system will be modified and users want the system shows the changes immediately.
Thanks.
bool FileExists(string virtualPath)
method is called for every request. I have tried to override all methods in the VirtualPathProvider, but I still cannot find the solution. – Evan