Project

General

Profile

Actions

Bug #91443

open

Environment Variable in SiteConfiguration gets cached

Added by Benjamin Robinson almost 4 years ago. Updated over 3 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Caching
Target version:
-
Start date:
2020-05-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I have set up an environment variable in the htaccess file ..…

SetEnvIf Host "^domain1\.com$" ERROR_CONTENT_SOURCE=t3://page?uid=1489
SetEnvIf Host "^domain2\.com$" ERROR_CONTENT_SOURCE=https://domain3.com/404/

... and use it in the yaml file of the site configuration:

errorContentSource: '%env(ERROR_CONTENT_SOURCE)%'

If I now open domain1.com/xyz, the desired error page appears. If I then open domain2.com/xyz, the error page set up for domain1 appears - but if I clear the cache first, the correct error page appears. The other way round it is exactly the same: the variant that is called first is set in the cache.

Actions

Also available in: Atom PDF