mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 03:44:36 +02:00
Use cached nodeslist when querying for subcategories.
This should increase performance for part lists.
This commit is contained in:
parent
31e89e2e36
commit
1e48c552dc
2 changed files with 12 additions and 14 deletions
|
@ -170,7 +170,6 @@ class TreeBuilder
|
|||
* @param string $class_name The class name of the entity you want to retrieve.
|
||||
* @param StructuralDBElement|null $parent This entity will be used as root element. Set to null, to use global root
|
||||
* @return StructuralDBElement[] A flattened list containing the tree elements.
|
||||
* @throws \Psr\Cache\InvalidArgumentException
|
||||
*/
|
||||
public function typeToNodesList(string $class_name, ?StructuralDBElement $parent = null): array
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue