I have added a menu item that calls a function that calls
votingapi_set_votes and delete votes. This function works locally fine but when uploaded to the hosting and when i call the function it takes like 5 minutes to update the database with the
Menu_item's callback calls a function that contains
Locally: i call the menu item with the node id as parameter and the a vote is added to the node.
On Hosting: When i call the menu_item i need to wait five minutes or so to see the node vote updated.