Changeset 38849 for trunk/src/wp-includes/class-wp-site-query.php
- Timestamp:
- 10/21/2016 02:53:19 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-site-query.php
r38768 r38849 246 246 // $args can include anything. Only use the args defined in the query_var_defaults to compute the key. 247 247 $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) ); 248 $last_changed = wp_cache_get( 'last_changed', 'sites' ); 249 if ( ! $last_changed ) { 250 $last_changed = microtime(); 251 wp_cache_set( 'last_changed', $last_changed, 'sites' ); 252 } 248 $last_changed = wp_cache_get_last_changed( 'sites' ); 253 249 254 250 $cache_key = "get_sites:$key:$last_changed";
Note: See TracChangeset
for help on using the changeset viewer.