( ! ) 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.0007484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.30314096480require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.30744125472include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.30744125472get_header( $name = ???, $args = ??? ).../single.php:10
60.30754125688locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.30754125784load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.30784126328require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.30804133736wp_head( ).../header.php:18
100.30804133736do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.30804133952WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.30804133952WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.30814137368wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.30814137368do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.30814137584WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.30814137584WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.30834139472twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.30844140992wp_style_add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.php:440
190.30844140992WP_Styles->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../functions.wp-styles.php:245
200.30844140992WP_Dependencies->add_data( $handle = 'twentyfifteen-ie', $key = 'conditional', $value = 'lt IE 9' ).../class-wp-styles.php:385
210.30844140992_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.30854146944wp_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.30854266480trigger_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.0007484400require( '/var/www/html/wp-blog-header.php ).../index.php:17
30.30314096480require_once( '/var/www/html/wp-includes/template-loader.php ).../wp-blog-header.php:19
40.30744125472include( '/var/www/html/wp-content/themes/twentyfifteen/single.php ).../template-loader.php:125
50.30744125472get_header( $name = ???, $args = ??? ).../single.php:10
60.30754125688locate_template( $template_names = [0 => 'header.php'], $load = TRUE, $load_once = TRUE, $args = [] ).../general-template.php:48
70.30754125784load_template( $_template_file = '/var/www/html/wp-content/themes/twentyfifteen/header.php', $load_once = TRUE, $args = [] ).../template.php:749
80.30784126328require_once( '/var/www/html/wp-content/themes/twentyfifteen/header.php ).../template.php:814
90.30804133736wp_head( ).../header.php:18
100.30804133736do_action( $hook_name = 'wp_head' ).../general-template.php:3197
110.30804133952WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
120.30804133952WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
130.30814137368wp_enqueue_scripts( '' ).../class-wp-hook.php:341
140.30814137368do_action( $hook_name = 'wp_enqueue_scripts' ).../script-loader.php:2311
150.30814137584WP_Hook->do_action( $args = [0 => ''] ).../plugin.php:522
160.30814137584WP_Hook->apply_filters( $value = '', $args = [0 => ''] ).../class-wp-hook.php:365
170.30834139472twentyfifteen_scripts( '' ).../class-wp-hook.php:341
180.33584267584wp_style_add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.php:444
190.33584267584WP_Styles->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../functions.wp-styles.php:245
200.33584267584WP_Dependencies->add_data( $handle = 'twentyfifteen-ie7', $key = 'conditional', $value = 'lt IE 8' ).../class-wp-styles.php:385
210.33594267584_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.33594267904wp_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.33594268128trigger_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

5 Steps to Take Care of Your MongoDB Performance

Do you face some performance issues in your MongoDB setup?

In this case follow these steps to provide some first aid to your system and gain some space for a long term architecture (such as Sharding).

Step 1: Enable Slow Queries

Get intelligence about your system behavior and performance bottlenecks. Usually there is a high correlation between the slow queries and your performance bottleneck, so use the following method to enable your system profiling collection:

db.setProfilingLevel(1, 100);

Step 2: Use Explain

Explore the problematic queries using explain. You can also use mtools to analyze the logged queries to find high frequent ones.

Step 3: Create Indexes

Your analysis should result with new indexes in order to improve the queries

Don’t forget to use index buildup in the background to avoid collections locking and system downtime.

Step 4: Use Sparse Indexes to Reduce the Size of the Indexes

If you use sparse documents, and heavily using the $exists key words in your queries, using sparse indexes (that includes only documents that includes your field) can minimize your index size the boost your query performance.

Step 5: Use Secondary Preferred to Offload Queries to Slaves

You probably have a replica set and it’s waste of resources not using your slaves for read queries (especially for reporting and search operations).

By changing your connection string to secondary preferred, your application will try to run read queries on the slaves before doing that on your master.

Bottom Line

Using these simple methods, you can gain time and space before hitting a wall.

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.