Clear cache entry when calling multiRemove

Reviewed By: javache

Differential Revision: D2560487

fb-gh-sync-id: 4d2c192cc659f118fd5667da2a029457328eae9f
This commit is contained in:
Nick Lockwood 2015-10-20 11:48:04 -07:00 committed by facebook-github-bot-6
parent 02e39719c2
commit c76c22249d
1 changed files with 1 additions and 0 deletions

View File

@ -382,6 +382,7 @@ RCT_EXPORT_METHOD(multiRemove:(NSArray *)keys
if ( _manifest[key] == (id)kCFNull) { if ( _manifest[key] == (id)kCFNull) {
NSString *filePath = [self _filePathForKey:key]; NSString *filePath = [self _filePathForKey:key];
[[NSFileManager defaultManager] removeItemAtPath:filePath error:nil]; [[NSFileManager defaultManager] removeItemAtPath:filePath error:nil];
[RCTGetCache() removeObjectForKey:key];
} }
[_manifest removeObjectForKey:key]; [_manifest removeObjectForKey:key];
} }