append setCachingDir method