TYPO3 - 如何处理打字稿设置的内容?
如果我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这是完全相同的请求,它有望被 mysql-query-cache 缓存。但是,你是对的,请求将发送三次。
如果我理解正确的话,你会考虑做某事。就像:
这也会导致三个 SQL 查询。
但是您可以使用 LOAD_REGISTER:
假设“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:
That would result in three SQL Querys too.
But you could use an LOAD_REGISTER:
Assuming "select" has stdWrap property.
If you are writing a new extension, you could use
$GLOBALS['TSFE']->register[$register] = $theValue;