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 }