Cache sudo user password timeout

Open user sudoers file:

visudo -f /etc/sudoers.d/dmitritelinov
And add to the end:
Defaults:dmitritelinov timestamp_timeout=240
where dmitritelinov is username and 240 is time in minutes = 4 hours.

To make the change globally edit /etc/sudoers and add to Defauls:
Defaults        timestamp_type=global,timestamp_timeout=240
But note that /etc/sudoers may be overwritten on the upgrade.