Added apc constant check to enable/disable the apc cache