if ( ! defined( 'WC_MAX_LINKED_VARIATIONS' ) ) {
define( 'WC_MAX_LINKED_VARIATIONS', 500);
}
add_filter ('woocommerce_ajax_variation_threshold','woocommerce_ajax_variation_threshold_more',10,2);
function woocommerce_ajax_variation_threshold_more($count,$product) {
return 500;
}
php_value max_input_vars 6000
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (9889,9882,9745,9737,9728,9720,9712,9705,9697,9689,9681,9674,9667,9661,9653,9645,9636,9625,9616,9607/*... omitted 454 items ...*/) ORDER BY meta_id ASC\G
Как теперь эти запросы оптимизировать, не подскажете?