Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Initialize TSFE, if conf of page was cached #2323

Merged
merged 4 commits into from Jun 7, 2019

Conversation

froemken
Copy link
Contributor

@froemken froemken commented Jun 6, 2019

With first call of getConfigurationFromPageId()
the parameter initializeTsfe is checked and processed.
With a second call to getConfigurationFromPageId()
we now check, if TSFE has to be initialized also while
retrieving data from cache.

Resolves: #2150

What this pr does

It initializes TSFE also, if configuration was fetched from configurationObjectCache

How to test

A perfect instruction you can find here: #2150

Fixes: #2150

With first call of getConfigurationFromPageId()
the parameter initializeTsfe is checked and processed.
With a second call to getConfigurationFromPageId()
we now check, if TSFE has to be initialized also while
retrieving data from cache.

Resolves: TYPO3-Solr#2150
@froemken
Copy link
Contributor Author

froemken commented Jun 6, 2019

Please do not merge...I will try to add a UnitTest first...

@timohund timohund added this to the 10.0 - Ready for TYPO3 9 LTS milestone Jun 7, 2019
@timohund timohund merged commit 0adc359 into TYPO3-Solr:master Jun 7, 2019
@froemken froemken deleted the cacheInitializeTsfe branch June 7, 2019 07:08
@Mabahe
Copy link
Contributor

Mabahe commented Jun 28, 2019

Stumbled over this, too. But in my case it is the second level cache. If $initializeTsfe is true and there is a hit in the second level cache, TSFE needs to get initialized, too. Will add an additional issue and PR

Mabahe added a commit to Mabahe/ext-solr that referenced this pull request Jul 4, 2019
In addition to TYPO3-Solr#2323 TSFE needs to get a proper initialization also
on a TwoLevelCache hit. Otherwise you get different TSFE objects when
indexing records via additionalPageIds outside the normal page tree for
the first indexing (without TwoLevelCache hit) and second indexing
(with TwoLevelCache hit).

Resolves: TYPO3-Solr#2328
Mabahe added a commit to Mabahe/ext-solr that referenced this pull request Jul 4, 2019
In addition to TYPO3-Solr#2323 TSFE needs to get a proper initialization also
on a TwoLevelCache hit. Otherwise you get different TSFE objects when
indexing records via additionalPageIds outside the normal page tree for
the first indexing (without TwoLevelCache hit) and second indexing
(with TwoLevelCache hit).

Resolves: TYPO3-Solr#2328
timohund pushed a commit that referenced this pull request Sep 2, 2019
In addition to #2323 TSFE needs to get a proper initialization also
on a TwoLevelCache hit. Otherwise you get different TSFE objects when
indexing records via additionalPageIds outside the normal page tree for
the first indexing (without TwoLevelCache hit) and second indexing
(with TwoLevelCache hit).

Resolves: #2328
timohund pushed a commit that referenced this pull request Sep 2, 2019
In addition to #2323 TSFE needs to get a proper initialization also
on a TwoLevelCache hit. Otherwise you get different TSFE objects when
indexing records via additionalPageIds outside the normal page tree for
the first indexing (without TwoLevelCache hit) and second indexing
(with TwoLevelCache hit).

Resolves: #2328
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Mar 1, 2021
* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall` 
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly. 
   
Related: TYPO3-Solr#2323, TYPO3-Solr#2150, TYPO3-Solr#2303

Fixes: TYPO3-Solr#2862
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Mar 7, 2021
* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall` 
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly. 
   
Related: TYPO3-Solr#2323, TYPO3-Solr#2150, TYPO3-Solr#2303

Fixes: TYPO3-Solr#2862
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Mar 7, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: TYPO3-Solr#2323, TYPO3-Solr#2150, TYPO3-Solr#2303

Fixes: TYPO3-Solr#2862
dkd-kaehm added a commit that referenced this pull request Mar 8, 2021
* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall` 
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly. 
   
Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Mar 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit that referenced this pull request Oct 8, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: #2323, #2150, #2303

Fixes: #2862
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Dec 2, 2021
… TYPO3 API

* Removes `Integration\UtilTest::getConfigurationFromPageIdInitializesTsfeOnCacheCall`
   in favor of `Unit\IndexQueue\IndexerTest::indexerAlwaysInitializesTSFE`
   The TSFE-initialization was moved and refactored from `Util`  to `FrontendEnvironment` which is used in Indexer directly.

Related: TYPO3-Solr#2323, TYPO3-Solr#2150, TYPO3-Solr#2303

Fixes: TYPO3-Solr#2862
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TSFE not properly initialised when indexing records via additionalPageIds
3 participants