mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Prevent an unnecessary exception to be thrown
--HG-- branch : 1.x
This commit is contained in:
@@ -73,6 +73,10 @@ namespace Orchard.FileSystems.VirtualPath {
|
||||
}
|
||||
|
||||
private void BindSignal(string virtualPath, CacheItemRemovedCallback callback) {
|
||||
if(!HostingEnvironment.VirtualPathProvider.DirectoryExists(virtualPath)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var cacheDependency = HostingEnvironment.VirtualPathProvider.GetCacheDependency(
|
||||
virtualPath,
|
||||
new[] { virtualPath },
|
||||
|
||||
Reference in New Issue
Block a user