简体   繁体   English

Joomla模块渲染澄清

[英]Joomla Module rendering Clarification

I am rendering many instances of the same module type ,each time giving it a different id and parameters through code(through get module and render module). 我正在渲染许多相同模块类型的实例,每次通过代码(通过get模块和render模块)为其赋予不同的ID和参数。 This rendering happens whenever a person visits a page. 每当有人访问页面时,就会进行渲染。 It means the modules are created then and there itself..Does this slow down the website? 这意味着将在那时创建模块,然后在那里创建。这是否会使网站速度变慢? Please clarify. 请澄清。 Thanks a lot in advance.. 非常感谢。

depends on how the cache is configured, if it's properly cached you shouldn't see a noticeable delay. 取决于缓存的配置方式,如果缓存正确,您应该不会看到明显的延迟。

Try to put the site in debug mode and load the page, it will give you detailed times for each module. 尝试将站点置于调试模式并加载页面,它将为您提供每个模块的详细时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM