fix setCache bug