diff --git a/backend/go-app/main.go b/backend/go-app/main.go index 55bc89c2..b00a1628 100755 --- a/backend/go-app/main.go +++ b/backend/go-app/main.go @@ -4940,7 +4940,15 @@ func handleCloudSetup(resp http.ResponseWriter, request *http.Request) { // 2. Add iterative sync schedule for interval seconds // 3. Add another environment for the org's users org.CloudSync = true - org.SyncFeatures = responseData.SyncFeatures + + // set cache here for 30 min + cacheKey := fmt.Sprintf("org_sync_features_%s", org.Id) + featuresBytes, err := json.Marshal(responseData.SyncFeatures) + if err != nil { + log.Printf("[ERROR] Failed to marshal SyncFeatures for cache: %s", err) + } else { + shuffle.SetCache(ctx, cacheKey, featuresBytes, 1800) + } org.SyncConfig = shuffle.SyncConfig{ Apikey: responseData.SessionKey,