Temporarily disable the cache (useful for testing)

def temporarily_disabled(self):
        """
        Temporarily disable the cache (useful for testing)
        """
        old_setting = self.options.enabled
        self.disable(clear_cache=False)
        try:
            yield
        finally:
            self.options.enabled = old_setting