In the context of the digital economy, one of the most important issues facing business managers is how to improve digital performance. However, the extant studies exploring this problem are quite limited. Based on information processing theory, this paper proposes a research model to investigate the relationship between employee resilience and digital performance, and the moderating role of enterprise social media usage. According to the analysis of data from 277 employees, this study finds that: (1) employee resilience has a positive effect on employee cognitive flexibility; (2) employee cognitive flexibility can positively influence digital performance, and the effect of employee cognitive flexibility on digital-enabled innovative performance is larger than the effect of employee cognitive flexibility on digital-enabled task performance; (3) both work-related social media usage and social-related social media usage exert a positive moderating effect between employee resilience and employee cognitive flexibility. The findings can help deepen the understanding of the relationship between employee resilience, employee cognitive flexibility, and digital performance, and give business managers suggestions on using enterprise social media to improve digital performance. [ABSTRACT FROM AUTHOR]