mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-26 10:07:34 -05:00
The gateway kept a cache of the users whose personal space had already been created, but the proxy still sent a CreateHome request to the gateway on every authenticated request, so each of them had to reach the gateway before that cache could help. Keep the set of users whose personal space exists in the proxy instead and skip the gateway call for them. The set lives in memory only: after a restart the first request of each user simply asks the gateway once more, so persistence is not needed. A created and an already existing personal space are both remembered, a failed attempt is not and gets retried by the next request. With the cache in the proxy the gateway no longer needs its own, so remove the create home cache settings (GATEWAY_CREATE_HOME_CACHE_*) and the create_personal_space_cache_config entry of the generated gateway configuration, and update the gateway README accordingly.