Small performance improvement to generating file URLs in SDDiskCache -setData:forKey:.

This commit is contained in:
Tim Johnsen 2022-05-12 15:42:17 -07:00
parent d01eb3f8ac
commit 484de40e3b
1 changed files with 1 additions and 1 deletions

View File

@ -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];