mariohahn / MHVideoPhotoGallery

A Photo and Video Gallery
MIT License
1.96k stars 352 forks source link

Fix high disk space usage for local files #146

Open dvkch opened 8 years ago

dvkch commented 8 years ago

Hi,

I found out an app I'm developing was using 2.5G of disk space for its image cache even though every loaded images are from disk and I manage thumbnails myself, so literally no files should be in the SDWebImageCache folder.

It appears there is no detection of local files when downloading them with SDWebImageCache so I added a quick setting to prevent local images to be stored on disk.

Here is a preview of the commit in my fork dealing with this :

https://github.com/mariohahn/MHVideoPhotoGallery/commit/3543b75565e6b1dc38278de5e19f4c7914f943e4

Thanks for considering,

Stan

fruitcoder commented 8 years ago

Awesome solution. I had the same problem :)