Rintisch
Rintisch

Reputation: 483

TYPO3 cache warmup with crawler not working

I have a strange behaviour with the cache in my TYPO3 installation:

Situation:

First test

Result:
Page needs long time on first request, runs fast on second request → that feels as if the cache does not exist but is build with the first request

Second test

Result:
Same behaviour as in first test, adminPanel → TypoScript shows that page is build (Page generation), so cache is not used

Third test

Result:
Fast response, adminPanel show that cache is used.

My conclusion:

What can be the reasons for this behaviour?
Is my configuration falsy?
Can some other settings in TYPO3 create this situation?

Upvotes: 2

Views: 244

Answers (1)

Rintisch
Rintisch

Reputation: 483

The problem was following:

  • the page is access restricted with a single FE usergroup
  • in the crawler configuration I added only the single FE usergroup which was needed to access the page
  • the FE user had two FE usergroups.

The reason why the cache from the crawler is not taken into account depends on the way how TYPO3 caching works:

  • TYPO3 gets all FE usergroups of a user.
  • These FE usergroups are one of the input parameter to caculate a hash.
  • This hash is an identifier. It is used to check whether a cache was already build with these parameters.
  • My crawler was set up with only one FE usergroup but my test user has two of them.
  • That's why the hash will be different. So the cache which was created by the crawler is not taken into account.

So the solution would be: Create a crawler configuration for every possible FE usergroup configuration which could users have.

Upvotes: 1

Related Questions