Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
React to MemoryCache trigger removal
Browse files Browse the repository at this point in the history
  • Loading branch information
JunTaoLuo committed Mar 27, 2017
1 parent 58317b1 commit d21af1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public CompilerCache(IFileProvider fileProvider)
}

_fileProvider = fileProvider;
_cache = new MemoryCache(new MemoryCacheOptions { CompactOnMemoryPressure = false });
_cache = new MemoryCache(new MemoryCacheOptions());
}

/// <summary>
Expand Down
5 changes: 1 addition & 4 deletions src/Microsoft.AspNetCore.Mvc.Razor/RazorViewEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ public RazorViewEngine(
_htmlEncoder = htmlEncoder;
_logger = loggerFactory.CreateLogger<RazorViewEngine>();
_razorProject = razorProject;
ViewLookupCache = new MemoryCache(new MemoryCacheOptions
{
CompactOnMemoryPressure = false
});
ViewLookupCache = new MemoryCache(new MemoryCacheOptions());
}

/// <summary>
Expand Down

0 comments on commit d21af1f

Please sign in to comment.