Skip to content

Commit

Permalink
[TASK] Drop manual cache hash config from link generation
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Jan 8, 2021
1 parent 81552dc commit cc64bbc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
3 changes: 1 addition & 2 deletions Classes/ViewHelpers/Link/ArchiveViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ public function render(): string
}
$uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder();
$uriBuilder->reset()
->setTargetPageUid($pageUid)
->setUseCacheHash(true);
->setTargetPageUid($pageUid);
if ($rssFormat) {
$uriBuilder
->setTargetPageType((int)$this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_archive.']['typeNum']);
Expand Down
1 change: 0 additions & 1 deletion Classes/ViewHelpers/Link/AuthorViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ protected function getUriBuilder(int $pageUid, array $additionalParams, bool $rs
$uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder();
$uriBuilder->reset()
->setTargetPageUid($pageUid)
->setUseCacheHash(true)
->setArguments($additionalParams);
if ($rssFormat) {
$uriBuilder
Expand Down
3 changes: 1 addition & 2 deletions Classes/ViewHelpers/Link/CategoryViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public function render(): string
];
$uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder();
$uriBuilder->reset()
->setTargetPageUid($pageUid)
->setUseCacheHash(true);
->setTargetPageUid($pageUid);
if ($rssFormat) {
$uriBuilder
->setTargetPageType((int)$this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_category.']['typeNum']);
Expand Down
1 change: 0 additions & 1 deletion Classes/ViewHelpers/Link/PostViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function render(): string
$createAbsoluteUri = (bool)$this->arguments['createAbsoluteUri'];
$uri = $uriBuilder->reset()
->setTargetPageUid($pageUid)
->setUseCacheHash(false)
->setSection($section)
->setCreateAbsoluteUri($createAbsoluteUri)
->build();
Expand Down
3 changes: 1 addition & 2 deletions Classes/ViewHelpers/Link/TagViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ public function render(): string
];
$uriBuilder = $this->renderingContext->getControllerContext()->getUriBuilder();
$uriBuilder->reset()
->setTargetPageUid($pageUid)
->setUseCacheHash(true);
->setTargetPageUid($pageUid);
if ($rssFormat) {
$uriBuilder
->setTargetPageType((int)$this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_tag.']['typeNum']);
Expand Down

0 comments on commit cc64bbc

Please sign in to comment.