( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0004484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.21414094952require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.21854123944include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.21854123944get_header( $name = ???, $args = ??? ).../single.php:10
60.21864124160locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.21864124256load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.21894124800require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.21904132208wp_head( ).../header.php:18
100.21904132208do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.21904132424WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.21904132424WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.21924135840wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.21924135840do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.21924136056WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.21924136056WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.21934137944twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.21944139464wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.21944139464WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.21944139464WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.21944139464_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.21944145416wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.21954264952trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

( ! ) Deprecated: Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers. in /var/www/html/wp-includes/functions.php on line 6131
Call Stack
#TimeMemoryFunctionLocation
10.0000484048{main}( ).../index.php:0
20.0004484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.21414094952require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.21854123944include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.21854123944get_header( $name = ???, $args = ??? ).../single.php:10
60.21864124160locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.21864124256load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.21894124800require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.21904132208wp_head( ).../header.php:18
100.21904132208do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.21904132424WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.21904132424WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.21924135840wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.21924135840do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.21924136056WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.21924136056WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.21934137944twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.24254266056wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.24254266056WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.24254266056WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.24254266056_deprecated_argument( $function_name = 'WP_Dependencies->add_data()', $version = '6.9.0', $message = 'IE conditional comments are ignored by all supported browsers.' ).../class-wp-dependencies.php:317
220.24264266376wp_trigger_error( $function_name = '', $message = 'Function WP_Dependencies->add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:5925
230.24264266600trigger_error( $message = 'Function WP_Dependencies-&gt;add_data() was called with an argument that is <strong>deprecated</strong> since version 6.9.0! IE conditional comments are ignored by all supported browsers.', $error_level = 16384 ).../functions.php:6131

命令行查看Memcached运行状态

很多时候需要监控服务器上的Memcached运行情况,比如缓存的查询次数,命中率之类的。但找到的那个memcached-tool是linux下用perl写的,我也没试过windows能不能用。后来发现个简单的办法可以做到,就是使用Telnet。

首先登录到服务器,然后在cmd命令行中键入

telnet 127.0.0.1 11211

其中127.0.0.1是服务器的地址(这里是本机) ,11211是memcached绑定的端口号。

之后命令行窗口全黑只有光标提示,摸黑输入stats,即可得到描述Memcached服务器运行情况的参数。如下图:

shell中查看Memcached状态

其中,uptime 是memcached运行的秒数,cmd_get是查询缓存的次数。这两个数据相除一下就能得到平均每秒请求缓存的次数——最近niupu的流量很低,所以平均也就一秒请求一次多,这么点大的压力,用文件系统缓存一样没问题,根本不会体现出使用memcached的优越。

下面的cmd_set 就是设置key=>value的次数。整个memcached是个大hash,用cmd_get没有找到的内容,就会调用一下cmd_set写进缓存里。紧跟着是get_hits,就是缓存命中的次数。缓存命中率 = get_hits/cmd_get * 100%。

下面的get_misses的数字加上get_hits应该等于cmd_get。而total_itemscurr_items表示现在在缓存中的键值对个数,在图上total_items == cmd_set == get_misses,不过当可用最大内存用光时,memcached就会删掉一些内容,上面的等式就不成立了

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.