Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under TYPO3 10 each query creates an entry in typo3.log #15

Open
robinson2 opened this issue Jul 12, 2021 · 3 comments
Open

Under TYPO3 10 each query creates an entry in typo3.log #15

robinson2 opened this issue Jul 12, 2021 · 3 comments

Comments

@robinson2
Copy link

robinson2 commented Jul 12, 2021

Example:
Mon, 12 Jul 2021 17:20:41 +0200 [WARNING] request="63475e337452e" component="TYPO3.CMS.Frontend.Controller.TypoScriptFrontendController": $TSFE->set_no_cache() was triggered. Reason: &no_cache=1 has been supplied, so caching is disabled! URL: "https://www.example.com/?type=999&no_cache=1&tx_comsolitsuggest_suggest%5Bsearch%5D=test&tx_comsolitsuggest_suggest%5Bmethod%5D=suggest". Caching is disabled!

This can be avoided by changing the following in Setup.typoscript:
plugin.tx_comsolit_suggest = USER_INT (instead of "USER")
and remove &no_cache=1 from url in page.jsFooterInline.999

@ghost
Copy link

ghost commented Jul 13, 2021

You make the page no cache.
The change you made slow down the whole page.

@robinson2
Copy link
Author

The get-parameter in the jsFooterInline already disabled the cache. However, this was problematic because it overflowed the log file. It is not recommended to disable the cache in production environments using no_cache. My suggestion to use USER_INT does not disable the complete cache of the page, only the plugin.
Maybe it would be better to set only the following to USER_INT:

ajaxCall {
    # ...
    100 < tt_content.list.20.comsolitsuggest_suggest
    100 = USER_INT
}

What do you think?

@kraemer-igroup
Copy link

kraemer-igroup commented Aug 18, 2021

I had the same thoughts. USER_INT should always be preferred over no_cache=1. Especially if you set disableNoCacheParameter=1 the suggestions get cached and are not working properly anymore:
image
I did set plugin.tx_comsolit_suggest = USER_INT. Maybe ajaxCall.100 = USER_INT is working, too.

Update: just checked it again, plugin.tx_comsolit_suggest = USER_INT still returns cached suggestions. ajaxCall.100 = USER_INT works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants