Skip to content

Commit 0a43a45

Browse files
committed
disable cache on local
1 parent 00c85b4 commit 0a43a45

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/Infrastructure/BotSharp.Core/Repository/FileRepository/FileRepository.KnowledgeBase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public async Task<IEnumerable<VectorCollectionConfig>> GetKnowledgeCollectionCon
111111
return configs;
112112
}
113113

114+
#if !DEBUG
114115
[SharpCache(10)]
116+
#endif
115117
public async Task<VectorCollectionConfig> GetKnowledgeCollectionConfig(string collectionName, string vectorStroageProvider)
116118
{
117119
var configs = await GetKnowledgeCollectionConfigs(new VectorCollectionConfigFilter
@@ -121,7 +123,7 @@ public async Task<VectorCollectionConfig> GetKnowledgeCollectionConfig(string co
121123
});
122124
return configs?.FirstOrDefault();
123125
}
124-
#endregion
126+
#endregion
125127

126128

127129
#region Documents

src/Plugins/BotSharp.Plugin.MongoStorage/Repository/MongoRepository.KnowledgeBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ public async Task<IEnumerable<VectorCollectionConfig>> GetKnowledgeCollectionCon
116116
});
117117
}
118118

119+
#if !DEBUG
119120
[SharpCache(10)]
121+
#endif
120122
public async Task<VectorCollectionConfig> GetKnowledgeCollectionConfig(string collectionName, string vectorStroageProvider)
121123
{
122124
var configs = await GetKnowledgeCollectionConfigs(new VectorCollectionConfigFilter

0 commit comments

Comments
 (0)