From 6e9b9e45214f6216f63ec80f7090553f25981a49 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 30 Nov 2020 12:09:20 +0300 Subject: [PATCH] Update DocumentAppService.cs --- .../Volo/Docs/Documents/DocumentAppService.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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); }