<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def disable(self, clear_cache=True):
 """ Disable the cache and clear its contents :param clear_cache: clear the cache contents as well as disabling (defaults to True) """

        logger.debug('disable(clear_cache={})'.format(clear_cache))
        if clear_cache:
            self.clear()
        self.options.enabled = False
        logger.info('cache disabled')