TYPO3 - 如何处理打字稿设置的内容?

发布于 2025-01-06 22:37:29 字数 237 浏览 0 评论 0原文

如果我在 ts-setup 中执行 mysql-select 并调用此选择的结果,比如说,放置在同一站点上的三个扩展,这是否仍然意味着该特定 mysql-select 在每次调用中只执行一次网站的?

如果是这样,在打字稿中执行 mysql-select 并将结果提供给扩展会更聪明,这样我就不必再次为每个扩展执行相同的 mysql-select,对吧?

或者打字稿中的文本是否以另一种方式处理?

提前感谢, 杰登

If i do a mysql-select within the ts-setup and call the result of this select in, lets say, three extensions placed on the same site, does that still mean, that this certain mysql-select is done exactly once within each call of the site?

If so, it would be smarter to do the mysql-select in the typoscript and give the result to the extensions, so i dont have to do the same mysql-select over and over for each extension again, right?

Or is the text from the typoscript handled another way?

Thanx in advance,
Jayden

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谜兔 2025-01-13 22:37:29

如果这是完全相同的请求,它有望被 mysql-query-cache 缓存。但是,你是对的,请求将发送三次。

如果我理解正确的话,你会考虑做某事。就像:

lib.mySqlSelect = CONTENT
lib.mySqlSelect ...
plugin.tx_yourplugin.select.cObject < lib.mySqlSelect

这也会导致三个 SQL 查询。

但是您可以使用 LOAD_REGISTER:

plugin.tx_yourplugin.select = {register:mySqlSelect}
plugin.tx_yourplugin.select.insertData = 1

page.1 = LOAD_REGISTER
page.1.mySqlSelect = CONTENT
page.1.mySqlSelect ...

假设“select”具有 stdWrap 属性。

如果您正在编写新扩展,则可以使用 $GLOBALS['TSFE']->register[$register] = $theValue;

If that are exactly the same request, it will hopefully cached by mysql-query-cache. But, you are right, the request will be send three times.

If i understand you right, you think about doing sth. like:

lib.mySqlSelect = CONTENT
lib.mySqlSelect ...
plugin.tx_yourplugin.select.cObject < lib.mySqlSelect

That would result in three SQL Querys too.

But you could use an LOAD_REGISTER:

plugin.tx_yourplugin.select = {register:mySqlSelect}
plugin.tx_yourplugin.select.insertData = 1

page.1 = LOAD_REGISTER
page.1.mySqlSelect = CONTENT
page.1.mySqlSelect ...

Assuming "select" has stdWrap property.

If you are writing a new extension, you could use $GLOBALS['TSFE']->register[$register] = $theValue;

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文