Skip to content

Commit

Permalink
Disable the persistent cache (#6835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Klimushyn authored Nov 15, 2018
1 parent b20ec53 commit 093b2fe
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions shell/common/persistent_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,8 @@ PersistentCache* PersistentCache::GetCacheForProcess() {
return gPersistentCache.get();
}

PersistentCache::PersistentCache()
: cache_directory_(std::make_shared<fml::UniqueFD>(
CreateDirectory(fml::paths::GetCachesDirectory(),
{
"flutter_engine", //
GetFlutterEngineVersion(), //
"skia", //
GetSkiaVersion() //
},
fml::FilePermission::kReadWrite))) {
PersistentCache::PersistentCache() {
// TODO(chinmaygarde): Reenable caching, avoiding the windows crasher.
if (!IsValid()) {
FML_LOG(WARNING) << "Could not acquire the persistent cache directory. "
"Caching of GPU resources on disk is disabled.";
Expand Down

0 comments on commit 093b2fe

Please sign in to comment.