فهرست منبع

修复DB缓存BUG

Yinmany 7 سال پیش
والد
کامیت
b3a1011920
2فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  1. 0 1
      Server/Model/Module/DB/DBQueryBatchTask.cs
  2. 0 4
      Server/Model/Module/DB/DBQueryTask.cs

+ 0 - 1
Server/Model/Module/DB/DBQueryBatchTask.cs

@@ -40,7 +40,6 @@ namespace ETModel
 					if (component == null)
 					{
 						component = await dbComponent.GetCollection(this.CollectionName).FindAsync((s) => s.Id == id).Result.FirstOrDefaultAsync();
-						dbCacheComponent.AddToCache(component);
 					}
 					
 					if (component == null)

+ 0 - 4
Server/Model/Module/DB/DBQueryTask.cs

@@ -35,10 +35,6 @@ namespace ETModel
 			{
 				// 执行查询数据库任务
 				component = await dbComponent.GetCollection(this.CollectionName).FindAsync((s) => s.Id == this.Id).Result.FirstOrDefaultAsync();
-				if (component != null)
-				{
-					dbCacheComponent.AddToCache(component);
-				}
 				this.Tcs.SetResult(component);
 			}
 			catch (Exception e)