no_cache still present in core
Edit any page doktype = 0 and hit the button "View" which opens the page in FE having the ?no_cache=1 set in the URL - running om TYPO3 v. 9.5.3 the deprecation log gives me:
component="TYPO3.CMS.Frontend.Controller.TypoScriptFrontendController": $TSFE->set_no_cache() was triggered. Reason: &no_cache=1 has been supplied, so caching is disabled!
[TASK] Remove no_cache=1 from preview url generation
The usage of no_cache should be avoided. If still required it can be added
by using the setting additionalGetParameters.
As the functionality goes into the PageRouter (effectively adds cHash),
and it's possible that "no_cache" is completely disabled, it is not
necessary to be set. This was not the case in v9 as Site Handling
was not available everywhere.
On top, if an editor is actually previewing the content on the page
(via EditDocumentController "save + view") DataHandler is actually
flushing the cache of the page/record associated
(e.g. cacheTags for records), which is much more recommended.
Tested-by: TYPO3com <email@example.com>
Tested-by: Benni Mack <firstname.lastname@example.org>
Tested-by: Benjamin Franzke <email@example.com>
Reviewed-by: Benni Mack <firstname.lastname@example.org>
Reviewed-by: Benjamin Franzke <email@example.com>
#3 Updated by Gerrit Code Review about 1 month ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59362