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

清除缓存的问题 #17

Open
dfshizhiqiang opened this issue Jul 13, 2015 · 3 comments
Open

清除缓存的问题 #17

dfshizhiqiang opened this issue Jul 13, 2015 · 3 comments

Comments

@dfshizhiqiang
Copy link

调用cache.clear()方法后,不能重新创建ACache目录

@sunchengjian
Copy link

直接App中清除缓存,ACache好像也不能使用了,不知道怎么回事

@SoftwareME
Copy link

We have encountered a similar problem, and we have verified that we can fix it. The code is as follows

public static ACache get(Context ctx) {
File file = new File(ctx.getCacheDir() + File.separator + "ACache");
if (!file.exists()) {
file.mkdirs();
}

    return get(ctx, "ACache");
}

@oldpan1310
Copy link

if (manager == null || !cacheDir.exists()) {
manager = new ACache(cacheDir, max_zise, max_count);
mInstanceMap.put(cacheDir.getAbsolutePath() + myPid(), manager);
}

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

4 participants