瀏覽代碼

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

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;