Flush method cache when creating new method