Bug #90406
closedCaching of pages is not adjusted for content with "Publish Date" / "Expiration Date" (starttime, endtime)
0%
Description
Content with a "Publish date" or "Expiration Date" is not rendered correctly because of caching of page (content).
If the content has a "Publish date" that intersects with the cache duration, I would expect the cache duration to be adjusted (this one time).
Example:
Time of created content: Feb 17, 2020 - 14:00
Cache duration: 24 h (until Feb 18, 2020 - 14:00)
Publish time: Feb 17, 2020 - 14:05 - infinite
In this case, the content is not published until Feb 18 14:00 but it should be published Feb 17 14:05.
I would expect the cache duration to be adjusted accordingly, or maybe a warning to be issued.
For pages with a publish date, this would also influence the menu (of other pages), so I guess it is not so easy to get this right entirely.
Reproduce¶
- Create a page with a content element which should be published some time in the future (the time interval being less than current cache period)
- Render page (so cache is filled)
- Wait until "Publish date" passed and load page again
Actual result¶
The content with a "Publish date" is not displayed after the "publish date". The cache of the page must be flushed for it to be rendered.
Expected result¶
When reloading the page after the publish date came, the content should be displayed