Merge pull request #3346 from timonus/faster-file-url
Small performance improvement to generating file URLs in SDDiskCache -setData:forKey:
This commit is contained in:
commit
fda0a57de9
|
@ -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