update cache and tmp directory