Clear cache entry when calling multiRemove
Reviewed By: javache Differential Revision: D2560487 fb-gh-sync-id: 4d2c192cc659f118fd5667da2a029457328eae9f
This commit is contained in:
parent
02e39719c2
commit
c76c22249d
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue