Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59592, comment 26


Ignore:
Timestamp:
05/23/2025 08:27:47 AM (11 months ago)
Author:
spacedmonkey
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59592, comment 26

    initial v1  
    1515
    1616I want to avoid doing another `wp_cache_get_last_changed`, as this might result in a remote cache get ( like in the case of @rmccue ). That is why I am passing `$last_changed` into the function instead of passing `$cache_group`.
     17
     18Update:
     19
     20$last_changed has to be a passed in, as there is the following code in WP_Query.
     21{{{#!php
     22$last_changed = wp_cache_get_last_changed( 'posts' );
     23if ( ! empty( $this->tax_query->queries ) ) {
     24        $last_changed .= wp_cache_get_last_changed( 'terms' );
     25}
     26}}}
     27
     28Reviewing feedback, I see the need for multiple calls, so `wp_cache_get_muliple_query_data` or `wp_query_cache_get_multiple`.
     29