Cache duration input validation added.