We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caa6490 commit 76924c7Copy full SHA for 76924c7
Scripts/Utilities/DataCache.cs
@@ -134,7 +134,10 @@ public void Save(string id, byte[] data)
134
id = id.Replace('/', '_');
135
136
if (m_Cache.ContainsKey(id))
137
+ {
138
+ Log.Debug("DataCache", "Has same key in the cache. Flushing old one: {0}", id);
139
Flush(id);
140
+ }
141
142
CacheItem item = new CacheItem();
143
item.Path = m_CachePath + id + ".bytes";
@@ -205,8 +208,10 @@ public void FlushOldest()
205
208
oldest = kp.Value;
206
209
}
207
210
- if ( oldest != null )
- Flush( oldest.Id );
211
+ if (oldest != null)
212
213
+ Flush(oldest.Id);
214
215
216
217
/// <summary>
0 commit comments