Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #58962, comment 46


Ignore:
Timestamp:
10/25/2023 10:17:15 AM (12 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58962, comment 46

    v1 v2  
    88I would prefer option 2 here for consistency with the existing functions, as per comment:14:
    99
    10 * `_prime_post_caches()`
    11 * `_prime_post_parent_id_caches()` (new in 6.4)
    12 * `_prime_site_caches()`
    13 * `_prime_term_caches()`
    14 * `_prime_comment_caches()`
    15 * `_prime_network_caches()`
     10> All the other cache priming functions following the naming convention of `_prime_thing_caches`:
     11>
     12> * `_prime_post_caches`
     13> * `_prime_post_parent_id_caches` (new in 6.4)
     14> * `_prime_site_caches`
     15> * `_prime_term_caches`
     16> * `_prime_comment_caches`
     17> * `_prime_network_caches`
     18>
     19> The other various functions that modify a cache in some way end in `_caches` too, `update_post_caches`, `update_post_author_caches`, etc.
    1620
    1721For the naming, I would suggest: