mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Clear cache entry when calling multiRemove
Reviewed By: javache Differential Revision: D2560487 fb-gh-sync-id: 4d2c192cc659f118fd5667da2a029457328eae9f
This commit is contained in:
committed by
facebook-github-bot-6
parent
02e39719c2
commit
c76c22249d
@@ -382,6 +382,7 @@ RCT_EXPORT_METHOD(multiRemove:(NSArray *)keys
|
||||
if ( _manifest[key] == (id)kCFNull) {
|
||||
NSString *filePath = [self _filePathForKey:key];
|
||||
[[NSFileManager defaultManager] removeItemAtPath:filePath error:nil];
|
||||
[RCTGetCache() removeObjectForKey:key];
|
||||
}
|
||||
[_manifest removeObjectForKey:key];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user