Project

General

Profile

Actions

Bug #105760

closed

Cached Settings in site configuration (multi domain setup)

Added by David Hoeckele about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2024-12-04
Due date:
% Done:

100%

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

Description

Hey, i have a multidomain setup (v12 => v13 upgrade) with a settings.yaml for each site which contains some pids like

publication:
  detailPid: 123
  listPid: 456
  storagePid: 789

These settings are used in typoscript plugin config (and later in php/fluid):
plugin.tx_customer_publication {
    settings {
        listPid = {$publication.listPid}
        detailPid = {$publication.detailPid}
        storagePid = {$publication.storagePid}
    }
}

the first site get’s the correct site settings as expected, calling the second site afterwards it gets the same settings as the first site instead of it’s own custom settings, they seem to be cached.
I also made a testcase with a plain TYPO3 instance:
Created 2 site configs and add settings to site config (separated settings.yaml made no difference):
base: 'https://plain-typo3-13.ddev.site/autogenerated-1'
errorHandling: {  }
languages:
  -
    title: English
    enabled: true
    languageId: 0
    base: /
    locale: en_US.UTF-8
    navigationTitle: English
    flag: us
rootPageId: 1
routes: {  }
settings:
  testParam: 111

and
base: 'https://plain-typo3-13.ddev.site/autogenerated-2'
errorHandling: {  }
languages:
  -
    title: English
    enabled: true
    languageId: 0
    base: /
    locale: en_US.UTF-8
    navigationTitle: English
    flag: us
rootPageId: 2
routes: {  }
settings:
  testParam: 222

Created a typoscript template in backend on each root page to output the setting:
page = PAGE
page {
  typeNum = 0

  10 = TEXT
  10.value = {$testParam}
  10.insertData = 1
}

Calling first page returns 111, calling second page afterwards also returns 111 instead of 222.
I also have checked the cache/code/core/SiteSettings_* files, they look fine.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #104544: TypoScript cache of nested Site Sets are not unique in FrontendClosedBenjamin Franzke2024-08-02

Actions
Related to TYPO3 Core - Feature #97816: New TypoScript parserClosed2022-06-27

Actions
Related to TYPO3 Core - Bug #104858: SiteSettings->get() does return values for nested arrays in subpropertiesClosedBenjamin Franzke2024-09-09

Actions
Actions #1

Updated by David Hoeckele about 2 months ago

the base urls in the example are 'https://plain-typo3-13.ddev.site/autogenerated-1' and 'https://plain-typo3-13.ddev.site/autogenerated-2', not both 'https://plain-typo3-13.ddev.site/autogenerated-2', sorry for the typo in the example.

Actions #2

Updated by Garvin Hicking about 2 months ago

  • Description updated (diff)
Actions #3

Updated by Garvin Hicking about 2 months ago

  • Category set to Site Handling, Site Sets & Routing
Actions #4

Updated by Benjamin Franzke about 2 months ago · Edited

Thanks for your report.

One question in order to understand why you face this error with v13 and not with v12:

Did you migrate from sys_template to site-sets in v13 (in that case I'm pretty sure that the error is a missing site-reference in the typoscript cache key [1]) or did you stay with sys_template records?

[1] https://github.com/TYPO3/typo3/blob/v13.4.1/typo3/sysext/core/Classes/TypoScript/FrontendTypoScriptFactory.php#L339-L346

Edit: Sorry, I just noticed that you wrote "Created a typoscript template in backend on each root page", so you're still using sys_template records. CC @Christian Kuhn

Actions #5

Updated by Benjamin Franzke about 2 months ago

  • Related to Bug #104544: TypoScript cache of nested Site Sets are not unique in Frontend added
Actions #6

Updated by David Hoeckele about 2 months ago

No, I did not migrate to site-sets (yet), i tried to stay with sys_template records.
It's a large TYPO3 with over 100 sites and a lots of special cases - so i'd prefer to stay with sys_template records for v13 (or is it not recommended to use it that way in v13?)

Actions #7

Updated by Benjamin Franzke about 2 months ago

Perfectly fine to stay with sys_template in v13, no intent to remove or deprecate that in nearest future.
I actually only asked about that in order to isolate the root cause of the issue.

We'll try to have a look at this.

Actions #8

Updated by Kevin Appelt about 1 month ago

@Benjamin Franzke We have the same issue using site sets.
(see: https://typo3.slack.com/archives/C03AM9R17/p1734511495355159 - my slack message from today - 2024-12-18@09:44am)

Actions #9

Updated by Christian Kuhn about 1 month ago

Actions #10

Updated by Gerrit Code Review about 1 month ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87557

Actions #11

Updated by Benjamin Franzke about 1 month ago

Kevin Appelt wrote in #note-8:

@Benjamin Franzke We have the same issue using site sets.
(see: https://typo3.slack.com/archives/C03AM9R17/p1734511495355159 - my slack message from today - 2024-12-18@09:44am)

That's another issue, please create a separate ticket.
Will be fixed a separate patch:

87555: [WIP][BUGFIX] Respect per-site settings in TypoScript cache identifiers | https://review.typo3.org/c/Packages/TYPO3.CMS/+/87555

Actions #12

Updated by Christian Kuhn about 1 month ago

  • Related to Bug #104858: SiteSettings->get() does return values for nested arrays in subproperties added
Actions #13

Updated by Gerrit Code Review about 1 month ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87557

Actions #14

Updated by Gerrit Code Review about 1 month ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87557

Actions #15

Updated by Gerrit Code Review about 1 month ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87557

Actions #16

Updated by Gerrit Code Review about 1 month ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87557

Actions #17

Updated by Gerrit Code Review about 1 month ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87557

Actions #18

Updated by Gerrit Code Review about 1 month ago

Patch set 1 for branch 13.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87570

Actions #19

Updated by Benjamin Franzke about 1 month ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF