INNER CODE UNIT · Go
ttl
cloudflare/cf-terraforming · internal/app/cf-terraforming/cmd/custom_processing.go:98
ttl = -1
}
elem := map[string]interface{}{
"codes": codes,
"ttl": ttl,
}
cacheTtlByStatus = append(cacheTtlByStatus, elem)
}
sort.SliceStable(cacheTtlByStatus, func(i int, j int) bool {
return cacheTtlByStatus[i]["codes"].(string) < cacheTtlByStatus[j]["codes"].(string)
})
(*response)[i].(map[string]interface{})["actions"].(map[string]interface{})["cache_ttl_by_status"] = cacheTtlByStatus
}
// Remap cache_key_fields.query_string.include & .exclude wildcards (not in an array) to the appropriate "ignore" field value in Terraform.