admin管理员组文章数量:1130349
I'm developing a website with a record for me query count. It has 720 Query for the main page. I want to reduce it.
The main page structure is like this:
- ~10 Custom Taxonomy Term
- Each Term has a query for name, slug, cover (from the
term_meta table) - Each Term has 3 Custom Post Type
- Each Post from these Custom Post Type query for ~4 Meta fields and thumbnail
I tried transient cache tech, but it didn't help me in the right measure.
Can I somehow reduce query amount by making a few queries to bring all data to arrays and manipulate with data using these arrays?
I'm developing a website with a record for me query count. It has 720 Query for the main page. I want to reduce it.
The main page structure is like this:
- ~10 Custom Taxonomy Term
- Each Term has a query for name, slug, cover (from the
term_meta table) - Each Term has 3 Custom Post Type
- Each Post from these Custom Post Type query for ~4 Meta fields and thumbnail
I tried transient cache tech, but it didn't help me in the right measure.
Can I somehow reduce query amount by making a few queries to bring all data to arrays and manipulate with data using these arrays?
本文标签: queryIs there any way to get all custom posts and all custom terms with it39s meta in few queries
版权声明:本文标题:query - Is there any way to get all custom posts and all custom terms with it's meta in few queries? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749196908a2331133.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论