Skip to content

Duplicate queries selecting from form table on every request. #3553

@Shelob9

Description

@Shelob9

What Version Of Caldera Forms, WordPress and PHP Are You Using?

Short Debug Information:

WordPress Version: 5.4.2 PHP Version: 7.3.18 MySQL Version: 5.5.5 Caldera Forms Version: 1.8.11

Currently Active Theme: Twenty Twenty: 1.2
Akismet Anti-Spam: 4.1.5 Not Active
Caldera Forms: 1.8.11 Active
Hello Dolly: 1.7.2 Not Active
Query Monitor: 3.6.0 Active

Does Your Issue Persist When You Disable All Other Plugins and Switch To The Default Theme?

Yes.

What Is The Unexpected Behaviour?

I read these reports:
https://wordpress.org/support/topic/duplicate-queries-10/ and I looked at CalderaForms.com new relic, which shows wp_cf_forms select as slowest query for last 7 days and last 60 minutes.

On site with no forms, on front-end page with no forms, I see a duplicate query in Query monitor from wp_cf_forms

dupes

Adding a form changes the duplicate query

dupes-2

Thriplicated queries on the page with form:

image

What PHP Errors Have You Logged While Reproducing This Bug?

None

What JavaScript Errors Have You Seen While Reproducing This Bug?

none

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions