Ip logging now asynchronous
Added check for apc_exists function to prevent errors on older versions of APC