If it was leaking outside because the gasket has perished it may need replacing. Chances are it's leaking inside too, there are oil galleries leading to the oil filter, these galleries are separated in part by the gasket. It may compromise the effectiveness of the oil filter. I would replace it if it was my engine but as it isn't I have no vested interest as such.