feat(bkgpslog):Enable custom TTL for buffer and script