Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Issue: get_formatted_datetime() Called too many times, Duplicate Queries in Query Monitor #507

Closed
1 task done
deshabhishek007 opened this issue Jan 24, 2024 · 0 comments · Fixed by #518
Closed
1 task done
Labels
bug Something isn't working

Comments

@deshabhishek007
Copy link
Contributor

Describe the bug

I'm Using Query Monitor on my test site. On Event Page, GatherPress\Core\Event->get_formatted_datetime() function is being called too frequently, resulting in an excessive number of database queries. This will impact the site's performance

Steps to Reproduce

  1. Navigate to the event listing page.
  2. Observe the database queries via the Query Monitor plugin.

Screenshots, screen recording, code snippet

Too Many Calls to get_formatted_datetime

Environment information

No response

WordPress information

  • WordPress Version: 6.4.2
  • PHP Version: 8.3.0

Code of Conduct

  • I agree to follow this project's Code of Conduct
@deshabhishek007 deshabhishek007 added the bug Something isn't working label Jan 24, 2024
mauteri added a commit that referenced this issue Jan 25, 2024
Fix for Issue #507: Optimize get_formatted_datetime Performance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant