admin管理员组文章数量:1130349
I'm trying to build the theme that is easily customizable by other developers and chose to go get_template_part route so files can be easily overwritten in child theme.
My question is there some kind of limit for get_template_part until it hurts performance?
For example, I'm using it for building a card UI, so each card has 5-10 get_template_part calls. If page displays 40 cards, that would be 400 disk lookups — could it hurt the performance? Is it better to move to regular functions (e.g. template tags)?
I'm trying to build the theme that is easily customizable by other developers and chose to go get_template_part route so files can be easily overwritten in child theme.
My question is there some kind of limit for get_template_part until it hurts performance?
For example, I'm using it for building a card UI, so each card has 5-10 get_template_part calls. If page displays 40 cards, that would be 400 disk lookups — could it hurt the performance? Is it better to move to regular functions (e.g. template tags)?
本文标签: get template partgettemplatepart calls amount and performance
版权声明:本文标题:get template part - get_template_part calls amount and performance? 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749108883a2317038.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论