set max size for cache dir