Tencent / VasSonic

VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform.
Other
11.81k stars 1.61k forks source link

子资源缓存文件大小超过设置的最大值时,清除的是getSonicCacheDirPath(),难道不应该是getSonicResourceCachePath()吗? #229

Closed taxuehanlin closed 6 years ago

taxuehanlin commented 6 years ago

该问题的重现步骤是什么?

  1. 将子资源缓存文件最大值设为200KB,检查时间间隔设置为1ms
  2. 打开H5界面,然后退出

期待的是子资源缓存文件大小超过最大值时,应该删除一些旧的子资源文件,实际没有删除。

产品版本3.0.0 操作系统魅族7.1.2

image

marlonlu commented 6 years ago

感谢 taxuehanlin 的指导,我们会尽快修复这个问题

vasdeveloper commented 6 years ago

This issue has been fixed at https://github.com/Tencent/VasSonic/commit/16c1c758717b17939cd3e2a82388b054a803966e