소스 검색

去掉文件缓存开关,增加通用性

Ray Zhang 6 년 전
부모
커밋
3ab538a256
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      common/FileCache.m

+ 4 - 4
common/FileCache.m

@@ -44,8 +44,8 @@
     
     AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
     
-    if(appDelegate.bEnable_Cache==false)
-        return ;
+//    if(appDelegate.bEnable_Cache==false)
+//        return ;
     if(imgData==nil)
         return;
     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
@@ -90,8 +90,8 @@
     
     AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
     
-    if(appDelegate.bEnable_Cache==false)
-        return nil;
+//    if(appDelegate.bEnable_Cache==false)
+//        return nil;
     
     
     NSData* data = nil;