Performance issues with Flexible Product Fields plugin
-
Hi team,
I am finding this plugin to be extremely heavy on database queries (44 per product page, more on archives).
An analysis shows that the plugin runs database queries in the 7 different template finders, multiplied for each hook section it uses on the PDP (eg.
woocommerce_before_add_to_cart_button,woocommerce_after_add_to_cart_buttonetc. None of the data is reused between templates.These also run during
Flexible_Product_Fields_Plugin->wp_enqueue_scripts()as well as for any other products, including upsells, related products, or product summary tiles on the PDP or archive / PLP.Due to the way caching is being done, each hook section has a different cache key, so nothing can be pulled from cache. One suggestion would be to reuse the
''section cache key for each individual section call, but really you should be sharing data between the templates without going back to the database.The result of this poor code is big increases in CPU/load with the plugin enabled.
Can you please ask your development team to look at the architecture of how you’ve included templates / scripts and where you cache data to avoid multiple queries during the execution of the plugin?
Thanks, Jason
You must be logged in to reply to this topic.