Barry’s hopes of avoiding relegation were dealt a massive blow by Caerphilly’s second half four-try burst as they lost 38-19.