When working with product types, the service is reading and parsing all external config files to retrieve the current commerce schema version (changed field name "titleFormat" in 4.0.0).
We've got 430 yaml files here resulting in a notable performance impact..
Relevant commit: https://github.com/craftcms/commerce/commit/be6529850f967edf2e22e881979f64aa89dd5cdb
Steps to reproduce
call any ProductTypes->get..() method (which uses _createProductTypeQuery())
What happened?
Description
When working with product types, the service is reading and parsing all external config files to retrieve the current commerce schema version (changed field name "titleFormat" in 4.0.0). We've got 430 yaml files here resulting in a notable performance impact.. Relevant commit: https://github.com/craftcms/commerce/commit/be6529850f967edf2e22e881979f64aa89dd5cdb
Steps to reproduce
ProductTypes->get..()
method (which uses_createProductTypeQuery()
)Expected behavior
Actual behavior
use external project config to determine fieldname
Craft CMS version
4.3.1
Craft Commerce version
4.2.2
PHP version
8.1.12
Operating system and version
debian 11.5
Database type and version
mariadb 10.7.1
Image driver and version
No response
Installed plugins and versions