MDL-46660 muc: add env check to memcache driver