code: def disable(self, clear_cache=True):
          
          logger.debug('disable(clear_cache={})'.format(clear_cache))
          if clear_cache:
              self.clear()
          self.options.enabled = False
          logger.info('cache disabled')
docs: Disable the cache and clear its contents
  
          :param clear_cache: clear the cache contents as well as disabling (defaults to True)