最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin3浏览0评论

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)

  1. 暂无评论