shamsdev / davinci

An esay-to-use image downloading and caching library for Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with ClearCache(url)

cguennou opened this issue · comments

Hi,

I was playing with Davinci, but I've realized that the function ClearCache(url) doesn't delete anything.
Indeed, on line #628 there is this :
File.Delete(filePath + CreateMD5(url));

I don't get why a new CreateMD5 is necessary? I've changed it using the uniqueHash (making the associated changes) and now it is working properly. Did I miss something about the clearing cache process? Don't know if it is a bug or it has been made on purpose, while I don't get anything.

Thanks for your answer!
Have a nice day,
Chloé.

Hi Chloé! Right now I can't help because I'm having some troubles with my computer, once I sort that out I'll check this!