On the occurrence from any cause of a vacancy in the office of poundkeeper (whether by reason of death, resignation, dismissal, or otherwise), and in case of the illness, absence, suspension, or temporary incapacity of the poundkeeper (from whatever cause arising), and so long as the vacancy, illness, absence, suspension, or temporary incapacity continues, the deputy shall have and may exercise all the powers, duties, and functions of the poundkeeper whose deputy he is.