You should set it to disable the parser cache with $parser->disableCache(); so that when someone has already voted they get the proper message.