Changes between Version 5 and Version 6 of Ticket #59516, comment 10
- Timestamp:
- 10/24/2023 02:24:29 PM (11 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #59516, comment 10
v5 v6 45 45 For 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. 46 46 47 **Step 2: Use only those key from **47 **Step 2: Use only those key from args that effects caching post query is fired** 48 48 We 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). 49 49 For 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).