Skip to content

Commit 55f1e93

Browse files
author
Marcus S. Zarra
committed
Option to turn off background caching
1 parent 8302f4d commit 55f1e93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ZSAssetManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ - (NSOperationQueue*)assetQueue;
7272

7373
@implementation ZSAssetManager
7474

75-
@synthesize allowOSBackgroundCaching;
75+
@synthesize backgroundCaching;
7676
@synthesize pendingCacheItems;
7777
@synthesize totalDownload;
7878
@synthesize cachePopulationIdentifier;
@@ -86,8 +86,8 @@ - (id)init
8686
// TODO: Is there a way to avoid object:nil?
8787
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reachabilityChanged:) name:kReachabilityChangedNotification object:nil];
8888

89-
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(flushMemoryCaches:) name:UIApplicationDidReceiveMemoryWarningNotification object:[UIApplication shared]];
90-
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteringBackground:) name:UIApplicationDidEnterBackgroundNotification object:[UIApplication shared]];
89+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(flushMemoryCaches:) name:UIApplicationDidReceiveMemoryWarningNotification object:[UIApplication sharedApplication]];
90+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(enteringBackground:) name:UIApplicationDidEnterBackgroundNotification object:[UIApplication sharedApplication]];
9191

9292
[self performSelector:@selector(loadPersistentCacheLists) withObject:nil afterDelay:1.0];
9393

0 commit comments

Comments
 (0)