Cache backend memcache and mongo fix