Check the memcache setting before setting it to true.