Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #62123, comment 3


Ignore:
Timestamp:
10/01/2025 06:55:11 PM (4 months ago)
Author:
Chouby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #62123, comment 3

    initial v1  
    11After doing some tests, the proposal proves to be counterproductive in practical use cases.
    22
    3 For example, in the terms list table, terms are added to the cache prior to the call to `get_ancestors`. So in this use case, probbaly the most frequent, the calls to `get_term()` in the function don't query the DB.
     3For example, in the terms list table, terms are added to the cache prior to the call to `get_ancestors()`. So in this use case, probably the most frequent, the calls to `get_term()` in the function don't query the DB.
    44
    55On the opposite, with this proposal, each call to `get_ancestors()` would result in one extra DB query.