@Lincoln: I haven't noticed the bug since disabling auto-refresh so it does seem to have been the cause. Got a bunch of other bugs to report but I might wait until 2.1 is released since they've probably already been fixed.
Thanks for the answer, that works for me with one small edit:
CategoryModel::GetAncestors($this->CategoryID)