def temporarily_enabled(self):
        """
        Temporarily enable the cache (useful for testing)
        """
        old_setting = self.options.enabled
        self.enable()
        try:
            yield
        finally:
            self.options.enabled = old_setting