-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
[FEATURE] Reduce call get available sites for TYPO3 12.4 #4154
[FEATURE] Reduce call get available sites for TYPO3 12.4 #4154
Conversation
Related to PR: #4145 |
@sfroemkenjw |
Hi @dkd-kaehm I don't understand. After your approval you will get 3 options to merge my PR: Merge, Rebase and Squash. In TYPO3 docs team we always work this way. I have no clue how to squash commits on my side. Stefan |
OK I'll do the squash. |
Squashed and rebased to release-12.0.x on 2024.12.12 state. |
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Move check for duplicate sites to getAvailableSites. PhpStan Fixes: TYPO3-Solr#3939 Replaces: TYPO3-Solr#4154
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Repair unit tests * Move check for duplicate sites to getAvailableSites. PhpStan * Remove unused imports Fixes: TYPO3-Solr#3939 Ports: TYPO3-Solr#4154 Replaces: TYPO3-Solr#4145
Replaced by #4260 |
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Repair unit tests * Move check for duplicate sites to getAvailableSites. PhpStan * Remove unused imports Fixes: TYPO3-Solr#3939 Ports: TYPO3-Solr#4154 Replaces: TYPO3-Solr#4145
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Move check for duplicate sites to getAvailableSites. PhpStan Fixes: TYPO3-Solr#3939 Replaces: TYPO3-Solr#4154
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Repair unit tests * Move check for duplicate sites to getAvailableSites. PhpStan * Remove unused imports Fixes: TYPO3-Solr#3939 Ports: TYPO3-Solr#4154 Replaces: TYPO3-Solr#4145
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Repair unit tests * Move check for duplicate sites to getAvailableSites. PhpStan * Remove unused imports Fixes: TYPO3-Solr#3939 Ports: TYPO3-Solr#4154 Replaces: TYPO3-Solr#4145
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Move check for duplicate sites to getAvailableSites. PhpStan Fixes: #3939 Replaces: #4154
Use PHP generator with yield to process just the available sites needed How to test With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites. This should speed up performance a lot. * Remove cache storing from <has> methods of SiteRepository * Use hasAvailableSites in ModuleController * Remove cache-set check from tests for SiteRepository * Repair unit tests * Move check for duplicate sites to getAvailableSites. PhpStan * Remove unused imports Fixes: #3939 Ports: #4154 Replaces: #4145
What this pr does?
Use PHP generator with yield to process just the available sites needed
How to test
With over 300 root pages it needs over 30 seconds to build up all available sites. With help of a PHP generator we can stop processing all available sites if just the first site is requested. It's also helpful to just check, if there are available sites.
This should speed up performance a lot.