Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By andypost on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.x-alpha4
Issue links:
Description:
New function takes an array of node IDs and returns according timestamps or zero to bring history fetching down to one query for node teasers.
Also static cache name changed from history_read
to history_read_multiple
background:
#1991684: Node history markers (comment & node "new" indicator, "x new comments" links) forces render caching to be per user forces render caching to be per user moves history fetching from being done once for each node in a teaser, to all at once (but currently in a separate HTTP request), this means looping over history_read() to get the timestamp for each nid.
Impacts:
Site builders, administrators, editors
Module developers
Themers