Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于缓存rootView更新 #5

Open
zhuozp opened this issue May 25, 2017 · 3 comments
Open

关于缓存rootView更新 #5

zhuozp opened this issue May 25, 2017 · 3 comments

Comments

@zhuozp
Copy link

zhuozp commented May 25, 2017

首先,demo写的不错。这里有个疑问,烦请作者解答一下。demo中似乎没有做到页面在增量下载下来并合并成最新bundle文件之后,没有做到及时刷新时效吧。即因为用了缓存,所以得到的rootview仍然是从CACHE得到的旧的rootview吧?

@songxiaoliang
Copy link
Owner

@zhuozp 恩,是没有做及时刷新的操作。可以通过反射的方式调用recreateInBackgroundxx方法就可以做到了。

@zhuozp
Copy link
Author

zhuozp commented May 26, 2017

@songxiaoliang 而且demo中,如果要使用最新的合成bundle的话,看了整个程序,感觉只有重启进程,或者是后退退出(程序中把进程杀了)才能使用最新的bundle,否则还是用老的。

@songxiaoliang
Copy link
Owner

@zhuozp 是的,在demo中没有完善使用反射的方式动态加载新的rootview,后期会添加上去的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants