ASA is the peak material for outdoor prints with the best uv and weather resistance. It is quite a bit expensive but worth it imo if it's not something you want to replace every 2 years. Downside is it must be dried before use every time and printed in a good enclosure printer, ideally preheated.
How big is the cap? Is it a threaded pipe clean out cap or a manhole sized cap?
There are codes regulating the loads a septic cap has to support (preventing people from falling in) as well as some need for atmospheric sealing. If you have to print in multiple sections I don't know how tight you can make it and how strong it can really be if there is glue involved.