WooCommerce product attributes hitting max_input_vars limit

Building a WooCommerce shop for a client which involves highly customisable products. These customisations are specified using the WooCommerce product attributes.

Because of the way this function works in WooCommerce, publishing a product results in exceeding the max_input_vars limit of 1000 in PHP.

Read More

I am aware that there are (paid for) plugins for WooCommerce which supposedly get around this problem, but before overloading this site with yet another plugin I wanted to explore increasing the max_input_vars value in php.ini.

I would have to increase the max_input_vars limit to (at an initial estimate) 6000. I would limit this change to apply to the wp-admin directory of this particular WordPress site only. It’s on a VPS we have sole use of (although we host other websites on it).

My question is: What likely performance or security issues for the site / server would arise from settings max_input_vars to 6000?

Related posts

1 comment

  1. Having just gone ahead and done it, I have found that while the site is a little slow in adding products with a large number of variations, it has not had any impact of the server’s performance.

    I can say that I am not entirely content with the way WooCommerce manages variations.

Comments are closed.