Authored by 卢克

The ioQueue is "SERIAL" ,so "dispatch_barrier_async" is not needed.

@@ -358,7 +358,7 @@ BOOL ImageDataHasPNGPreffix(NSData *data) { @@ -358,7 +358,7 @@ BOOL ImageDataHasPNGPreffix(NSData *data) {
358 } 358 }
359 359
360 - (void)cleanDiskWithCompletionBlock:(void (^)())completionBlock { 360 - (void)cleanDiskWithCompletionBlock:(void (^)())completionBlock {
361 - dispatch_barrier_async(self.ioQueue, ^{ 361 + dispatch_async(self.ioQueue, ^{
362 NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES]; 362 NSURL *diskCacheURL = [NSURL fileURLWithPath:self.diskCachePath isDirectory:YES];
363 NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey]; 363 NSArray *resourceKeys = @[NSURLIsDirectoryKey, NSURLContentModificationDateKey, NSURLTotalFileAllocatedSizeKey];
364 364