adding memcache switch to dist config