#20473Starttime/endtime is not taken into account when caching
Description
If a content element has a starttime/endtime or a tt_news item has such dates, they are not taken into account when cached.
The attached patch solves this issue in mostly automatic way.
The related issue is #19283 but it does not solve the problem automatically but requires hooks from extensions.
(issue imported from #M11145)