Page load performance
-
I’m tuning my page load performance. I noticed some odd database calls being made on each page.
Forminator_Form_Views_Model->count_non_empty_ip_address()
get_option('forminator_activated_addons')
get_option('forminator_stripe_configuration')The first of these is originating from “maybe_cleanup_ip_address” which in turn is being called from “cleanup_views_ip_address” which is ultimately from “Forminator_Upgrade::init”. I think the problem is that the function is being called every time Forminator is initialised (e.g. every page) rather than just when Forminator has been upgraded. Could the call be moved inside the if clause to avoid repeated unnecessary calls to the database.
The two get_option calls are causing access to the database because there is no value for them stored in wp_options and hence they are not getting autoloaded by wp_load_alloptions.
- You must be logged in to reply to this topic.