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
Caching images in disk only, but not in memory. Is that possible? #391
Comments
I'v tried using [[SDImageCache sharedImageCache] clearMemory];, but it didn't seem to work. |
See this thread: https://twitter.com/0xced/status/332252283758845953 Better solution soon. |
Hi All! I Have tried calling [[SDImageCache sharedImageCache] setValue:nil forKey:@"memCache"] My problem it's that real memory and virtual memory reach high values and app crashed before the Mem Warning |
@rs not sure what the "better solution soon" is, but I would like to add my voice to wanting this ability. I'm trying to use SDWebImage to solve numerous problems in an app I work on. Much of the time the app images are thumbnails in UITableViewCell's so it's simple enough to just use the UIImageView category. But there's a feature in the app where you can "download all app content" for things like Airplane Mode use. So of course, I'd want to piggyback into SDWebImage's mechanism so there's one way for all image management. It would be welcome to have a way to purely download the images and save onto disk, no memory caching, very simple and efficient file download. One thing I also have to contend with is this server transition we're going through. The old way had the server processing the images and putting them on the server with constantly unique URL's, so detecting "changes to the image" was never difficult, just check against the URL. Thus our SDWebImage use wouldn't need any options. However, the new server doesn't necessarily provide unique URL's (tho the HTTP headers should have Last-Modified and Expires headers); so for that server I've been trying to use Thank you for listening. |
+1 I would love to see this happen! I am struggling with the same issues atm. |
+1 I need this feature too. |
+1 I would love to have the ability to either turn off in memory caching or at least control the size of it without altering the source code.
Would be awesome to see this feature added. I am sure many people would benefit greatly from it. |
+1 |
1 similar comment
+1 |
+1 |
1 similar comment
+1 |
+1 |
1 similar comment
+1 |
everyone interested should try this pull |
+1 |
@Savankumar-vaishnav this is already done via #1217 |
+1 |
@gmogames This feature was added in 3.7.4 release. You just need to use the |
+1 |
In case this saves anyone else time, in recent SDWebImage this property has moved to |
|
Here is the new syntax to use |
My app takes up a lot of memory already, I want to reduce memory usage as much as possible.
The text was updated successfully, but these errors were encountered: