check if near cache enabled