Duplicate Queries Shown

Formidable Forms Released
3 May, 2019 04:09:06
jstraete
Topics: 22
Messages: 82
I use the Query Monitor plugin in WordPress to troubleshoot site issues frequently. I noticed this morning on a page that loads a PDF into the view, that there are almost 2,000 duplicate queries shown for this particular PDF that is loading. I attached a screenshot showing this. Looking through the list, the Callers are mostly labeled Model_E2pdf_Element->get_elements() or Model_E2pdf_Element->load(). I don't recall seeing this before, so maybe something with a recent update has caused this duplication.
3 May, 2019 04:45:04
Oleksandr
Support
Topics: 2
Messages: 584
Hi,

Last updates must not affect anyhow the number of queries. When you are using shortcode inside "View" with list of entries - it loads each shortcode via "foreach" and it can cause duplicate queries.

We are continuously working on optimization and this will help us to investigate issue and try to optimize requests to avoid unnecessary loads. Thank you for notifying us.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 May, 2019 04:07:44
Oleksandr
Support
Topics: 2
Messages: 584
Hi,

We just released an update (1.07.05) which has "Cache" support. Option is turned on by default. It must solve issue with duplicate queries.

Let us know please if it will be any issues.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 May, 2019 04:21:57
jstraete
Topics: 22
Messages: 82
Thank you for the update. I looked at 3 of my form entries (all using the same form template), and all 3 showed only 1 duplicate query related to the plugin, which I attached a screenshot of (this same duplicate query appeared on all 3 tests).
7 May, 2019 04:28:42
Oleksandr
Support
Topics: 2
Messages: 584
Caching of entries will be added with next update. Thank you.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
7 May, 2019 04:29:23
jstraete
Topics: 22
Messages: 82
Ok sounds great, thanks again for all your help!
8 May, 2019 00:10:36
Oleksandr
Support
Topics: 2
Messages: 584
Hi,

We just released an update (1.07.06) where was added cache for entries. Let us know please if it will be any issues after update. Thank you.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!
8 May, 2019 04:05:34
jstraete
Topics: 22
Messages: 82
I just check about half a dozen PDF entries and none of them showed the duplicate query anymore! Thanks!
8 May, 2019 04:07:41
Oleksandr
Support
Topics: 2
Messages: 584
Glad to hear that issue solved. Thank you for participating in improvements.

We remain at your service.
If you appreciate our support , we would really appreciate your feedback at WordPress.org!