|
|
@ -58,21 +58,21 @@ namespace Volo.Docs.Admin.Documents |
|
|
await _versionCache.RemoveAsync(versionCacheKey, true); |
|
|
await _versionCache.RemoveAsync(versionCacheKey, true); |
|
|
|
|
|
|
|
|
var documents = await _documentRepository.GetListByProjectId(project.Id); |
|
|
var documents = await _documentRepository.GetListByProjectId(project.Id); |
|
|
|
|
|
|
|
|
foreach (var document in documents) |
|
|
var documentUpdateInfoCacheKeys = documents.Select(document => |
|
|
{ |
|
|
CacheKeyGenerator.GenerateDocumentUpdateInfoCacheKey( |
|
|
var documentUpdateInfoCacheKey = CacheKeyGenerator.GenerateDocumentUpdateInfoCacheKey( |
|
|
|
|
|
project: project, |
|
|
project: project, |
|
|
documentName: document.Name, |
|
|
documentName: document.Name, |
|
|
languageCode: document.LanguageCode, |
|
|
languageCode: document.LanguageCode, |
|
|
version: document.Version |
|
|
version: document.Version |
|
|
); |
|
|
) |
|
|
|
|
|
); |
|
|
await _documentUpdateCache.RemoveAsync(documentUpdateInfoCacheKey); |
|
|
|
|
|
|
|
|
await _documentUpdateCache.RemoveManyAsync(documentUpdateInfoCacheKeys); |
|
|
|
|
|
|
|
|
|
|
|
documents.ForEach(document => document.LastCachedTime = DateTime.MinValue); |
|
|
|
|
|
|
|
|
document.LastCachedTime = DateTime.MinValue; |
|
|
await _documentRepository.UpdateManyAsync(documents); |
|
|
await _documentRepository.UpdateAsync(document); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public virtual async Task PullAllAsync(PullAllDocumentInput input) |
|
|
public virtual async Task PullAllAsync(PullAllDocumentInput input) |
|
|
|