This, in turn, could lead to recurrent UTIs. Cephalexin For Chronic UTI. If this is not your first UTI, know one thing: you may not be fighting single-celled free-floating bacteria in your bladder. Most likely, you are fighting bacterial biofilms. Cephalexin stops the growth of the cell wall, which bacteria need to survive.