Well, you could also add that function call to maybe your showflat script. It's going to update quite a bit more often, whenever someone views a post, but since it's being updated often, it should impact performance much at all.