Refreshing the content tree is not consistant

Just wondering if anyone has any examples of code that actually works :smiley: I feel it should be a notification or something that I can hook in to to refresh the left hand content tree on save / publish of a node