code: def cache(self, value):
          
          value = bool(value)
          if self._cache and not value:
              self._clear()
          self._cache = value
docs: Enable or disable caching of pages/frames. Clear cache if False.