wp query – Is it normal that get_post() gets run 300 times and the content of those posts aren’t visible?

Question

Is it normal that get_post() gets run 300 times and the content of those posts aren’t visible? Ran Query Monitor and saw get_post() from wp_query getting run 300 times, but it’s on my homepage and I don’t see the content of those posts since most of the content of the homepage are statically generated and don’t get their content from posts. Is it possible that get_post gets run even when we don’t need it? How do we find the culprit and get rid of those unnecessary calls? I found the count on Queries By Caller and I don’t see a way to find where they’re all getting called.

0
Sayaman 6 months 2022-02-14T18:58:42-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse