Review main Abandoned

50862[DRAFT] Do not load PackageManager at every request

Benni Mack CR 0 V 0 Hard +334 −218 updated 10/05/17, 05:40

Commit message

This one is for Helmut :)

Instead of having a PackageManager and all Package objects
set up (and cached) at every request, the now simple
PackageStates.php file contains everything needed for regular
frontend requests, thus saving lots of performance and memory
for regular requests.

A new iterator object PackageList, which represents the information
within typo3conf/PackageStates.php and contains paths and
extension keys of all loaded (not available extensions).

For parts where more information about the extensions is needed
(e.g. version number, constraints, dependencies) the Package
Manager can be loaded.

Additionally, the PackageManager is loaded whenever the state
of packages is modified or PackageStates.php is not available.

ToDo:
- Remove all occurrences of TYPO3_LOADED_EXT
- Test the install tool + EM
- Write tests
- Adapt existing tests
- Think about how to deal with TYPO3_LOADED_EXT
- Clear up and write down what is breaking
- Write documentation
- Do proper profiling / performance tests
- Think about WHEN the packageList should be initialized (could now even be done before LocalConfiguration is loaded)
- Think about WHEN to initialize the core cache
- Think about the Failsafe Package Manager and all the install tool goodies

Review

  • Code review CR 0

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V 0

    Imported before Forger kept the single votes, the next import adds them.

Files 12