add cache lib

fix uploader