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

add class_info module #12

Closed
wants to merge 1 commit into from
Closed

add class_info module #12

wants to merge 1 commit into from

Conversation

seanrion
Copy link

@seanrion seanrion commented Sep 2, 2022

将获取的课程信息存入本地,减少需要获取课程信息的步骤和时间,能够提前获取课程信息从而更快选到课

将获取的课程信息存入本地,减少需要获取课程信息的步骤和时间,能够提前获取课程信息从而更快选到课
@Ca1337
Copy link
Collaborator

Ca1337 commented Sep 2, 2022

感谢pr,这是非常有用的功能,但目前有一个原因影响:

事实上早期版本确实是这么存的(虽然没有自动更新),但后续移除了缓存功能,主要原因是:

  • 有些计算机基础欠佳的同学下载后会长期使用,但不会手动更新(删除)课程信息的缓存

比较好的解决方法可能是 根据学年学期给缓存文件动态命名 ,这样保证用户无需任何额外操作也能长期使用

@seanrion
Copy link
Author

seanrion commented Sep 2, 2022

可以,不过最好的方法是用json格式,加一个expire值,模块中按expire决定是否更新本地缓存

@seanrion seanrion closed this by deleting the head repository Apr 17, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants