diff --git a/modules/docs/src/Volo.Docs.Application/Volo/Docs/Documents/DocumentAppService.cs b/modules/docs/src/Volo.Docs.Application/Volo/Docs/Documents/DocumentAppService.cs index 23562b5f22..9d5015d942 100644 --- a/modules/docs/src/Volo.Docs.Application/Volo/Docs/Documents/DocumentAppService.cs +++ b/modules/docs/src/Volo.Docs.Application/Volo/Docs/Documents/DocumentAppService.cs @@ -247,10 +247,7 @@ namespace Volo.Docs.Documents return await GetDocumentAsync(documentName, project, languageCode, version); } - //Only the latest version (dev) of the document needs to update the cache. - if (!project.LatestVersionBranchName.IsNullOrWhiteSpace() && - document.Version == project.LatestVersionBranchName && - document.LastCachedTime + _cacheTimeout < DateTime.Now) + if (document.LastCachedTime + _cacheTimeout < DateTime.Now) { return await GetDocumentAsync(documentName, project, languageCode, version, document); }