Skip to content

Conversation

dreampiggy
Copy link
Contributor

New Pull Request Checklist

  • I have read and understood the CONTRIBUTING guide

  • I have read the Documentation

  • I have searched for a similar pull request in the project and found none

  • I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

  • I have added the required tests to prove the fix/feature I am adding

  • I have updated the documentation (if necessary)

  • I have run the tests and they pass

  • I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: #1594

Pull Request Description

The AutoPurgeCache which add a notification for UIApplicationDidReceiveMemoryWarningNotification is useless because SDImageCache itself has already add a notifiacation for this. And will actually call [self.memCache removeAllObjects];

So we do not need to trigger clean twice. :)

@dreampiggy dreampiggy added this to the 4.3.0 milestone Jan 5, 2018
@dreampiggy dreampiggy added the fix label Jan 5, 2018
@codecov-io
Copy link

Codecov Report

Merging #2153 into master will decrease coverage by 0.98%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2153      +/-   ##
==========================================
- Coverage   81.24%   80.26%   -0.99%     
==========================================
  Files          36       35       -1     
  Lines        3690     3451     -239     
  Branches      345      306      -39     
==========================================
- Hits         2998     2770     -228     
+ Misses        669      659      -10     
+ Partials       23       22       -1
Impacted Files Coverage Δ
SDWebImage/SDImageCache.m 66.84% <100%> (-7.06%) ⬇️
SDWebImage/SDWebImageDownloaderOperation.m 92.46% <0%> (-0.35%) ⬇️
Tests/Tests/SDImageCacheTests.m 100% <0%> (ø) ⬆️
Tests/Tests/SDMockFileManager.m

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c5f3a8c...7704c1e. Read the comment docs.

@dreampiggy dreampiggy merged commit 5667d67 into SDWebImage:master Jan 11, 2018
@dreampiggy dreampiggy deleted the improve_duplicate_memory_warning branch January 11, 2018 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants