Skip to content

初次启动的时候删除缓存 #166

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

Closed
JiaoZiLang opened this issue Jan 29, 2023 · 1 comment · Fixed by #167
Closed

初次启动的时候删除缓存 #166

JiaoZiLang opened this issue Jan 29, 2023 · 1 comment · Fixed by #167
Labels
enhancement New feature or request

Comments

@JiaoZiLang
Copy link

建议措施

首次App的打开插件的时候,应该每次都会去拉取已经做过的题目,这个时候可以覆盖一下这个缓存

.lcpr/leetcode/cache/problems.json

需求背景

经常活跃于不同PC 电脑的该插件刷,经常发现问题不同步问题。

早期

点击删除缓存,然后每次都要 重新登陆

后期

找到缓存的文件,手动删除,再重新打开插件

个人观点

cache 在于加速和减轻压力,但是不应该导致不一致问题,发现每次打开App插件的时候会主动拉一次解决题目了,这个时候建议覆盖cache;或者判断cache的文件创建时间如果少于 xx 时间,则直接复用;每次启动插件的时候更新一把cache 还是有必要的。

@ccagml ccagml linked a pull request Jan 29, 2023 that will close this issue
@ccagml
Copy link
Owner

ccagml commented Jan 29, 2023

我都是ssh连到同一个云服务器做,所以没这种情况😂
2.13.2加了两个设置
openClearProblemCache
openClearProblemCacheTime

@ccagml ccagml closed this as completed Jan 29, 2023
@ccagml ccagml added the enhancement New feature or request label Jan 30, 2023
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

Successfully merging a pull request may close this issue.

2 participants