Roles Cache sometimes inconsistent

I got very simple code
const role = channel.guild.roles.cache.get(pingRoleId);
size = role?.members?.size


And the size is sometimes different, and after restart of the application the cache is correct again and shows the correct size

Is there a way to manually refresh the cache or to prevent this issue?
Was this page helpful?