Changeset 55526 for trunk/src/wp-includes/post.php
- Timestamp:
- 03/10/2023 04:27:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r55437 r55526 5676 5676 $hash = md5( $page_path . serialize( $post_type ) ); 5677 5677 $cache_key = "get_page_by_path:$hash:$last_changed"; 5678 $cached = wp_cache_get( $cache_key, 'post s' );5678 $cached = wp_cache_get( $cache_key, 'post-queries' ); 5679 5679 if ( false !== $cached ) { 5680 5680 // Special case: '0' is a bad `$page_path`. … … 5743 5743 5744 5744 // We cache misses as well as hits. 5745 wp_cache_set( $cache_key, $foundid, 'post s' );5745 wp_cache_set( $cache_key, $foundid, 'post-queries' ); 5746 5746 5747 5747 if ( $foundid ) { … … 5984 5984 5985 5985 $cache_key = "get_pages:$key:$last_changed"; 5986 $cache = wp_cache_get( $cache_key, 'post s' );5986 $cache = wp_cache_get( $cache_key, 'post-queries' ); 5987 5987 if ( false !== $cache ) { 5988 5988 _prime_post_caches( $cache, false, false ); … … 6149 6149 6150 6150 if ( empty( $pages ) ) { 6151 wp_cache_set( $cache_key, array(), 'post s' );6151 wp_cache_set( $cache_key, array(), 'post-queries' ); 6152 6152 6153 6153 /** This filter is documented in wp-includes/post.php */ … … 6192 6192 } 6193 6193 6194 wp_cache_set( $cache_key, $page_structure, 'post s' );6194 wp_cache_set( $cache_key, $page_structure, 'post-queries' ); 6195 6195 6196 6196 // Convert to WP_Post instances. … … 7356 7356 } 7357 7357 7358 wp_cache_set ( 'last_changed', microtime(), 'posts');7358 wp_cache_set_posts_last_changed(); 7359 7359 } 7360 7360
Note: See TracChangeset
for help on using the changeset viewer.