diff --git a/shell/common/persistent_cache.cc b/shell/common/persistent_cache.cc index 95d2b6f9ecf..c3f6ebf0250 100644 --- a/shell/common/persistent_cache.cc +++ b/shell/common/persistent_cache.cc @@ -40,8 +40,16 @@ PersistentCache* PersistentCache::GetCacheForProcess() { return gPersistentCache.get(); } -PersistentCache::PersistentCache() { - // TODO(chinmaygarde): Reenable caching, avoiding the windows crasher. +PersistentCache::PersistentCache() + : cache_directory_(std::make_shared( + CreateDirectory(fml::paths::GetCachesDirectory(), + { + "flutter_engine", // + blink::GetFlutterEngineVersion(), // + "skia", // + blink::GetSkiaVersion() // + }, + fml::FilePermission::kReadWrite))) { if (!IsValid()) { FML_LOG(WARNING) << "Could not acquire the persistent cache directory. " "Caching of GPU resources on disk is disabled.";