Changeset 60697 for trunk/src/wp-includes/post.php
- Timestamp:
- 08/31/2025 09:41:54 PM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r60621 r60697 6105 6105 6106 6106 $hash = md5( $page_path . serialize( $post_type ) ); 6107 $cache_key = "get_page_by_path:$hash :$last_changed";6108 $cached = wp_cache_get ( $cache_key, 'post-queries');6107 $cache_key = "get_page_by_path:$hash"; 6108 $cached = wp_cache_get_salted( $cache_key, 'post-queries', $last_changed ); 6109 6109 if ( false !== $cached ) { 6110 6110 // Special case: '0' is a bad `$page_path`. … … 6176 6176 6177 6177 // We cache misses as well as hits. 6178 wp_cache_set ( $cache_key, $found_id, 'post-queries');6178 wp_cache_set_salted( $cache_key, $found_id, 'post-queries', $last_changed ); 6179 6179 6180 6180 if ( $found_id ) {
Note: See TracChangeset
for help on using the changeset viewer.