allow turning memcache on/off from config