John Davidson

php - Are there options to improve the login speed and the general performance in TYPO3 10?

0 comments
Message:


Introduction


We run a lot of TYPO3 7.6 and TYPO3 10.4 installations only as a Backend for frontend applications. We programmed several middlewares and extbase plugins to manage our data.


Problem


After migration from TYPO3 7.6 to TYPO3 10.4 the general execution performance is significantly slower. For example to login a frontend user. TYPO3 7.6 runs with PHP 7.0 and TYPO3 10.4 with PHP 7.4.


PHP performance tests


First I tested the general performance of PHP with a small benchmark script. The result is, that PHP 7.4 is around 30% faster than PHP 7.0. I made this tests locally with docker containers on the same hardware. Opcode Caching is up and running.


So TYPO3 should execute 30% faster with PHP 7.4. But it is not the case. It is slower.


TYPO3 performance tests


So I make several performance tests with TYPO3 7.6 LTS, TYPO3 10.4 LTS and also TYPO3 11.1. The general execution speed is very different. I installed a standard TYPO3 for this 3 versions, added only a login form and measure the response times.


















































TYPO3 version Action Response time in ms Times slower compared to TYPO3 7.6
7.6 Frontend user login 185
10.4 Frontend user login 759 4.1
11.1 Frontend user login 802 4.3
7.6 Frontend user logout 26
10.4 Frontend user logout 185 7.2
11.1 Frontend user logout 187 7.3


My Answer:
_Solution options_

1. **Enable caching**: Make sure that caching is properly configured and enabled in TYPO3. This can significantly improve performance by reducing the number of database queries and rendering time.

2. **Optimize database queries**: Review and optimize the database queries used in your TYPO3 extensions and plugins. Use indexes where necessary and avoid unnecessary queries.

3. **Use PHP opcache**: Ensure that PHP opcache is enabled and properly configured. This can improve performance by storing precompiled script bytecode in memory, reducing the need for PHP to load and parse scripts on each request.

4. **Update extensions**: Make sure that all extensions and plugins used in your TYPO3 installation are up to date. Developers often release performance improvements in newer versions of their extensions.

5. **Check server configuration**: Review your server configuration and make sure that it is optimized for TYPO3. This includes settings such as PHP memory limit, max execution time, and other relevant parameters.

6. **Use a caching proxy**: Consider using a caching proxy such as Varnish or Squid to cache static content and reduce the load on your TYPO3 server.

7. **Profile and optimize code**: Use profiling tools to identify performance bottlenecks in your TYPO3 code and optimize them. This may involve refactoring code, reducing unnecessary loops, or improving algorithm efficiency.

8. **Consider upgrading to TYPO3 11**: TYPO3 11 may have performance improvements over TYPO3 10, so consider upgrading to the latest version to see if it improves performance.

By implementing these solutions, you should be able to improve the login speed and general performance of your TYPO3 installation.

Rate this post

4 of 5 based on 6080 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us