From e06abfb29c26b4db0351ebef6db8c3cbe3b73753 Mon Sep 17 00:00:00 2001 From: alimy Date: Sat, 25 Jun 2022 21:58:00 +0800 Subject: [PATCH] fixed get index post list error when not user cache index service --- internal/dao/dao.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/dao/dao.go b/internal/dao/dao.go index 5d77c6b4..6526b4a1 100644 --- a/internal/dao/dao.go +++ b/internal/dao/dao.go @@ -44,6 +44,7 @@ func NewDataService() core.DataService { ds.getIndexPostsFunc = ds.getIndexPosts ds.cacheIndex = newBigCacheIndexServant(ds.getIndexPosts) } else { + ds.getIndexPostsFunc = ds.getIndexPosts ds.useCacheIndex = false }