fix bug for cache thread.
Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>