The module is called for every form on a page, and was attempting a query on each run.

The form_alter() function will now return immediately if the form is not a node_form, and if it is a node form but not a valid product class, or power tools is disabled for the product class it will also return immediately without attempting further form alterations.

This should improve performance system wide, though in most cases the difference probably won't be obvious.

Comments

willvincent’s picture

Status: Fixed » Closed (fixed)