Move batcache configuration to fix error message

Fixed call_user_func_array() error message from showing before page load