Fix issue #3784
Fixed disabling caching of a chunk's output

* origin/pr/12116:
  Fix issue #3784
Fixed disabling caching of a chunk's output

* origin/master:
  Fix issue #3784