Remove subtree cache for function re-definition