[英]TYPO3 set_no_cache() triggering unnecessarily
I am using TYPO3 7.6.11 . 我正在使用TYPO3 7.6.11。 Some of my extension have no_cache = 1/set_no_cache = 1 forced in the url.
我的某些扩展名在URL中强制设置了no_cache = 1 / set_no_cache = 1。
By checking the error log, I'm continuously seeing errors as 通过检查错误日志,我不断看到错误为
cms: $TSFE->set_no_cache() was triggered.
cms:$ TSFE-> set_no_cache()已触发。 Reason: no_cache is requested via GET parameter.
原因:通过GET参数请求了no_cache。 Caching is disabled!
缓存已禁用!
cms: $TSFE->set_no_cache() was triggered.
cms:$ TSFE-> set_no_cache()已触发。 Reason: no_cache has been set before the page was generated - safety check.
原因:在生成页面之前已设置no_cache-安全检查。 Caching is disabled!
缓存已禁用!
Also in the install tool, 同样在安装工具中
$TYPO3_CONF_VARS['FE']['disableNoCacheParameter'] = '0'; $ TYPO3_CONF_VARS ['FE'] ['disableNoCacheParameter'] ='0';
Basically after googling possible solutions.. I found out setting disableNoCacheParameter will solve the issue.. But it'll be useless in situations where I need pages to be cached (like fe_login and all) 基本上是在搜索可能的解决方案之后。.我发现设置disableNoCacheParameter将解决问题。.但是,在需要缓存页面的情况下(例如fe_login等),它将无用。
If some of you guyz ever came across a situation like this one above, I'd like to hear from you. 如果你们中的某些人遇到过上述情况,我希望收到您的来信。 :)
:)
I don't want the error log to show this error. 我不希望错误日志显示此错误。 It's totally disturbing.
真是令人不安。 :(
:(
In general you don't need the parameter no_cache=1
at all as if a plugin should not be cached, it can be switched to be a USER_INT
. 通常,您根本不需要参数
no_cache=1
,就好像不应缓存插件一样,可以将其切换为USER_INT
。 Same for TypoScript as there is the COA_INT
content object which also makes its content not cached. 与TypoScript相同,因为有
COA_INT
内容对象,这也使得其内容不被缓存。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.