mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-10 15:49:36 +08:00
clear cache only during debug
This commit is contained in:
@@ -203,7 +203,7 @@ public class CodePush {
|
||||
rollbackPackage();
|
||||
} else {
|
||||
// Clear the React dev bundle cache so that new updates can be loaded.
|
||||
if (!this.isDebugMode) {
|
||||
if (this.isDebugMode) {
|
||||
clearReactDevBundleCache();
|
||||
}
|
||||
// Mark that we tried to initialize the new update, so that if it crashes,
|
||||
|
||||
Reference in New Issue
Block a user