def session_cache_limiter(interp, limiter=None):
    """Get and/or set the current cache limiter"""
    act = interp.session.cache_limiter
    space = interp.space
    if limiter is None:
        return space.newstr(act)

    if not limiter:
        limiter = ""
    interp.config.set_ini_w('session.cache_limiter', space.wrap(limiter))
    interp.session.cache_limiter = limiter
    return space.newstr(act)