Refactoring wp_cache_debug 

Hi Brandon and related peeps!

I was poking around in the code for this project today and noticed that there are a ton of places where the wp_cache_debug function is wrapped in checks against the global array, when the function itself checks whether debugging is enabled. 

Tell me if this is a horrible PR, this is my first! :sweat: