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

支持定时拉取更新最新栏的帖子 #29

Open
ryan961 opened this issue Jul 19, 2023 · 3 comments
Open

支持定时拉取更新最新栏的帖子 #29

ryan961 opened this issue Jul 19, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@ryan961
Copy link

ryan961 commented Jul 19, 2023

请问可以支持定时拉取更新最新栏的帖子并保存?比如我后台开着客户端,比较忙的时候或者周末可能会半天才会点开浏览下最新,但此时最新栏却只有最新的 N 条帖子,这个 N 也没有办法设置....

@isaced isaced added the enhancement New feature or request label Aug 24, 2023
@isaced
Copy link
Owner

isaced commented Aug 24, 2023

定时拉取不环保,做成切回 App 的时候如果超过 10m 自动刷新一下吧,还得在设置里加个开关

对了还可以加个 Command+R 快捷键刷新

@ryan961
Copy link
Author

ryan961 commented Aug 24, 2023

还有个伪需求就是可以刷新是可以保存刷新历史的帖子(可以搞个配置限制例如只保存最近 7 天)。比如我一直后台开着 v2exos,但我一天都没打开,但我第二天打开的时候,历史的帖子我还都能滚动浏览,不知道这个有望实现不

@isaced
Copy link
Owner

isaced commented Aug 24, 2023

好提议 👍,客户端理论上可以实现,加个本地缓存层,但有个弊端是如果某段时间没打开过 App,这期间的内容还是漏了。

感觉较为理想的方式是在服务端进行统一缓存和存储,无论是否打开过 App 都能看到「历史最新」和「历史热门」贴,我比较倾向于这个方案,回头在 Deno Depoly 搭一个。

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

No branches or pull requests

2 participants