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.
wp query - Is it normal that get_post() gets run 300 times and the content of those posts aren't visible?
评论列表(0)
- 暂无评论