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