feat(kol): workspace KOL cards + article source type
This commit is contained in:
@@ -64,11 +64,16 @@ func workspaceTemplateCardsCacheKey(tenantID int64) string {
|
||||
return fmt.Sprintf("workspace:template_cards:%d", tenantID)
|
||||
}
|
||||
|
||||
func workspaceKolCardsCacheKey(tenantID int64) string {
|
||||
return fmt.Sprintf("workspace:kol_cards:%d", tenantID)
|
||||
}
|
||||
|
||||
func invalidateWorkspaceCaches(ctx context.Context, c sharedcache.Cache, tenantID int64) {
|
||||
deleteCacheKey(ctx, c, workspaceOverviewCacheKey(tenantID))
|
||||
deleteCacheKey(ctx, c, workspaceRecentArticlesCacheKey(tenantID))
|
||||
deleteCacheKey(ctx, c, workspaceQuotaSummaryCacheKey(tenantID))
|
||||
deleteCacheKey(ctx, c, workspaceTemplateCardsCacheKey(tenantID))
|
||||
deleteCacheKey(ctx, c, workspaceKolCardsCacheKey(tenantID))
|
||||
}
|
||||
|
||||
func brandListCacheKey(tenantID int64) string {
|
||||
|
||||
Reference in New Issue
Block a user