Update certificate path
Update log path
1. Catch all exception when query certificate. 2. Check memorycached instance before query.