Project

General

Profile

Actions

Feature #66255

closed

Set cHash parameter if an cHashRequiredParameters is set

Added by Philip Weweler about 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2015-04-02
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

You can define parameters that need an cHash ([FE][cHashRequiredParameters]).
But when generating links via cObj/typolink the cHash isn't automatically set. You need to force it with useCacheHash = 1

I think the cHash can set automatically. This may avoid errors at the frontend.

The patch is working with TYPO3 6.2.11

How to test
Install Tool:
-> set [FE][cHashRequiredParameters] = category

In your template:

page {
  20 = TEXT
  20 {
    typolink {
      parameter = 1
      additionalParams = &category=1
    }
  }
}


Files

cHash.patch (3.39 KB) cHash.patch Philip Weweler, 2015-04-03 00:02
Actions #1

Updated by Mathias Schreiber over 8 years ago

  • Target version deleted (next-patchlevel)
Actions #2

Updated by Susanne Moog over 6 years ago

  • Category changed from Content Rendering to Caching
  • Assignee deleted (Philip Weweler)
Actions #3

Updated by Sybille Peters about 6 years ago

Thank you for your report.

Even though it has been some time, would you consider checking if your patch idea is still up to date and upload it to our Gerrit review server?

Someone could do this for you, but I am thinking you might like the opportunity to contribute to TYPO3 yourself.

You can find a description of the TYPO3 contribution workflow here: https://docs.typo3.org/typo3cms/ContributionWorkflowGuide/

Hint: If you get stuck anywhere, ask on Slack in the #typo3-cms-coredev channel. You can register in the TYPO3 slack workspace here: https://forger.typo3.com/slack

Also, if your issue is no longer reproducable, please let us know in the slack channel, so that this issue can be closed.

Thank you in advance!

Actions #4

Updated by Benni Mack over 4 years ago

Hey Philip,

sorry for the late reply.

Good news: With TYPO3 v9 and Site Handling this is now done automatically - so you never have to set useCacheHash=1 anymore when you have Site handling enabled. I just retested your issue and no problems so far, the cHash is now always (and automatically) created when a GET parameter is not in the whitelist or the excluded list.

If you feel there is still something missing, let us know, or submit a new ticket.

Actions #5

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF