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

缓存优化,以及清除 #11

Open
JC-Sung opened this issue May 11, 2023 · 0 comments
Open

缓存优化,以及清除 #11

JC-Sung opened this issue May 11, 2023 · 0 comments

Comments

@JC-Sung
Copy link

JC-Sung commented May 11, 2023

缓存我直接替换成了YYCache,因为比NSFileManager要快一些。当APP清除图片缓存时,那么[AutoSize]这些缓存也没必要存在了,目前是永远存储的,除非卸载APP。还有就是一些特殊情况下,图片URL没变,但是返回的图像确实变了,所以为key存储图片时,取出原有存储(如果有)对比一下,如果储存发生变化,则把对应key的reloadstate主动状态设置为NO(即便刷新过这个URL)

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