make disable_cahce_limit also disable accumulated cache limit (#111334)
Summary:
Fixes #111329.
X-link: https://github.com/pytorch/pytorch/pull/111334
Approved by: https://github.com/yanboliang
Reviewed By: jeanschmidt
Differential Revision: D50342213
Pulled By: ydwu4
fbshipit-source-id: d75e41b171d338cd5bc1fff54de97050330008a8