fixed get index post list error when not user cache index service

pull/142/head
alimy 2 years ago
parent 7c2ad0bd82
commit e06abfb29c

@ -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
}

Loading…
Cancel
Save