change log to memcache.