To stop ants coming in to your house leave a saucer of milk outside.
The adult ants drink it & it has an effect on ant reproduction. The young are born without toes so they can't climb in to your cavity walls.
This effect is called lack toes in toddler ants.