delete_by_ip: don't generate cache if nothing is deleted.

Gotta go fast.