Issue Bug Closed

#53702FAL fetches storages twice on every BE request

Markus Klein 11/16/13, 19:48 updated 10/02/18, 12:09

Description

FAL fetches the storages twice on every request.

SELECT COUNT(uid) FROM sys_file_storage WHERE 1=1;
SELECT * FROM sys_file_storage WHERE 1=1 AND sys_file_storage.hidden=0 AND sys_file_storage.deleted=0;

StorageRepository->findAll() tries to detect if there’s ever been a storage, and if not so it creates one for /fileadmin.

Maybe this can be optimized somehow to have only one DB access.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.