Make WordPress Core

Changes between Version 5 and Version 6 of Ticket #59516, comment 10


Ignore:
Timestamp:
10/24/2023 02:24:29 PM (4 months ago)
Author:
thekt12
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59516, comment 10

    v5 v6  
    4545For e.g Caching in WP_Network_Query skips [https://github.com/WordPress/wordpress-develop/blob/781953641607c4d5b0743a6924af0e820fd54871/src/wp-includes/class-wp-network-query.php#L256  $network_ids = $this->get_network_ids();] which is logic intensive.
    4646
    47 **Step 2: Use only those key from**
     47**Step 2: Use only those key from args that effects caching post query is fired**
    4848We should only pass the args (filter it before) to `generate_cache_key()` for cache key generation that effects the way cache is done (Detailed in the Findings section above).
    4949For filtering, we can have an array keys that needs to be considered in an array and only scrap out those keys from the main args ($q).