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

可能会有不能及时刷新数据的issue #2

Open
nadazero opened this issue Jun 9, 2017 · 0 comments
Open

可能会有不能及时刷新数据的issue #2

nadazero opened this issue Jun 9, 2017 · 0 comments

Comments

@nadazero
Copy link

nadazero commented Jun 9, 2017

当获得天气数据并缓存到本地数据库后,之后在访问同一城市的数据会优先获取本地缓存的数据而不是访问网络数据。
此时即使本地缓存的数据是比较过时的数据也不会去主动更新了,只能等待update service在后台去更新数据了。因为update service是每隔8小时启动一次,所以总觉得app中数据更新的不是很及时。

感觉这点还是有改进的余地。不过考虑到那个天气API的每日限定3000次的访问数和大部分开发者依然使用的是代码中默认的那个API key,减少网络访问次数也可能是一种考量。

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

1 participant