在 functions.php 里面function get_option($setting)这个函数:function get_option($setting) {
global $wpdb;//就是 wp_cache_get 这个函数怎么来的呢。
$value = wp_cache_get($setting, 'options');
if ( false === $value ) {
if ( defined('WP_INSTALLING') )
$wpdb->hide_errors();
$row = $wpdb->get_row("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting' LIMIT 1");
if ( defined('WP_INSTALLING') )
$wpdb->show_errors(); if( is_object( $row) ) { // Has to be get_row instead of get_var because of funkiness with 0, false, null values
$value = $row->option_value;
wp_cache_set($setting, $value, 'options');
} else {
return false;
}
} // If home is not set use siteurl.
if ( 'home' == $setting && '' == $value )
return get_option('siteurl'); if ( 'siteurl' == $setting || 'home' == $setting || 'category_base' == $setting )
$value = preg_replace('|/+$|', '', $value); return apply_filters( 'option_' . $setting, maybe_unserialize($value) );
}
wp_cache_get 这个函数怎么来的呢。不在 wp-blog-header.php 这个文件的所有reqiue_once过的文件里,也不在functions。php 的文件里这个get_option() 是function gzip_compression() {
if ( !get_option('gzipcompression') ) return false; if ( extension_loaded('zlib') ) {
ob_start('ob_gzhandler');
}
}
 里面调用的那么到底这个 wp_cache_get 怎么来的呢