def METHOD_NAME(session):
    CONFIG_CACHE_TIMEOUT_SEC = 60
    _config = session.get("config")
    _now = datetime.utcnow()
    _dt = isoparse(_config.get("expiration")) if _config else _now
    if _config is None or _dt < _now:
        config = Configuration.load()
        _dt = _now + timedelta(seconds=CONFIG_CACHE_TIMEOUT_SEC)
        cached_config = {"configuration": {}, "expiration": _dt.isoformat()}
        for field_name in ["read_only", "maintenance"]:
            cached_config["configuration"][field_name] = getattr(config, field_name)
        session["config"] = cached_config