Changeset 23384
- Timestamp:
- 02/04/2013 01:48:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/taxonomy.php
r22878 r23384 1241 1241 $filter_key = ( has_filter('list_terms_exclusions') ) ? serialize($GLOBALS['wp_filter']['list_terms_exclusions']) : ''; 1242 1242 $key = md5( serialize( compact(array_keys($defaults)) ) . serialize( $taxonomies ) . $filter_key ); 1243 $last_changed = wp_cache_get( 'last_changed', 'terms');1244 if ( ! $last_changed ) {1245 $last_changed = time();1246 wp_cache_set( 'last_changed', $last_changed, 'terms');1243 $last_changed = wp_cache_get( 'last_changed', 'terms' ); 1244 if ( ! $last_changed ) { 1245 $last_changed = 1; 1246 wp_cache_set( 'last_changed', $last_changed, 'terms' ); 1247 1247 } 1248 1248 $cache_key = "get_terms:$key:$last_changed"; … … 2633 2633 } 2634 2634 2635 wp_cache_set('last_changed', time(), 'terms'); 2635 if ( function_exists( 'wp_cache_incr' ) ) { 2636 wp_cache_incr( 'last_changed', 1, 'terms' ); 2637 } else { 2638 $last_changed = wp_cache_get( 'last_changed', 'terms' ); 2639 wp_cache_set( 'last_changed', $last_changed + 1, 'terms' ); 2640 } 2636 2641 } 2637 2642
Note: See TracChangeset
for help on using the changeset viewer.