clear cache only during debug

This commit is contained in:
Geoffrey Goh
2015-12-23 17:20:54 -08:00
parent f2b109c78b
commit 86a4ed3f0b

View File

@@ -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,