Bug in wp_cache_post_chage()

I ran into an interesting bug in this function where $wp_cache_object_cache is checked in an if statement, but isn't defined inside the function [line 1105].

I've added it to the [line 1074] as a global import. I'm not sure if this is the appropriate location since I'm not familiar with the plugin, but was getting errors without it there.

Thanks!