We've been using this modification since 6.03 with the cache turned on and haven't had any problems with it. We've got 3 instances of it running on our index.php page and there's no problem with it updating. If it isn't working for you, maybe it's the cache settings on your server itself conflicting with your ub cache settings. There isn't many possibilities for error if you have everything installed correctly.