/
Inefficient Admin Tree cache building [5.3.0-B1]
Inefficient Admin Tree cache building [5.3.0-B1]
The Admin Tree is main navigation tool in the Admin Console. Each unit can add it's own sections to the Admin Tree. To ensure top speed of Admin Console the Admin Tree cache is used.
I've found following issues with it:
- The "
$this->Application->UnitConfigReader->ReReadConfigs
" is being called even, when full unit config cache rebuild is happening resulting in processing time increase for no reason - the dedicated "getUnitConfigsWithoutPriority" and "getUnitConfigsWithPriority" methods of
kUnitConfigReader
class are not being used and therefore priority sorting code is duplicated
Solution
- make
ReReadConfigs
method do nothing, when full unit config cache rebuild is in progress - use "getUnitConfigsWithoutPriority" and "getUnitConfigsWithPriority" methods
Related Discussions
- Doing complete cache reset calls OnAfterConfigRead twice
- Incorrect SQL queries with duplicate JOIN clauses