How should I maintain the soap dispenser?

How should I maintain the soap dispenser?

1.Keep the dispenser away from direct sunlight.
2.Change the pump regularly.