Small performance improvement to generating file URLs in SDDiskCache -setData:forKey:.
This commit is contained in:
parent
d01eb3f8ac
commit
484de40e3b
|
@ -87,7 +87,7 @@ static NSString * const SDDiskCacheExtendedAttributeName = @"com.hackemist.SDDis
|
|||
// get cache Path for image key
|
||||
NSString *cachePathForKey = [self cachePathForKey:key];
|
||||
// transform to NSURL
|
||||
NSURL *fileURL = [NSURL fileURLWithPath:cachePathForKey];
|
||||
NSURL *fileURL = [NSURL fileURLWithPath:cachePathForKey isDirectory:NO];
|
||||
|
||||
[data writeToURL:fileURL options:self.config.diskCacheWritingOptions error:nil];
|
||||
|
||||
|
|
Loading…
Reference in New Issue