private void SaveCache() { try { using (Stream fileStream = CacheFile.OpenWrite()) { SaveCacheTo(fileStream); } } catch (IOException e) { LogError($"Error while saving include cache file, cache will not be saved.{Environment.NewLine}{e}"); } }