Nextcloud version (eg, 10.0.2): 12.0.3 (Problem exists since 12.0 alpha)
Operating system and version (eg, Ubuntu 16.04): CentOS 6
Apache or nginx version (eg, Apache 2.4.25): 2.2.15
PHP version (eg, 5.6): 7.1.7
Is this the first time you’ve seen this error?:
Problem exists since commit
Can you reliably replicate it? (If so, please outline steps):
nextcloud with multiple trusted domains
slow, when multiple domains are used
on test system, multipe times load url from domain A is fast, multiple times from domain B is fast, but every change between domains is slow, multiple seconds to wait
The issue you are facing:
Slow, when multiple domains are used
On test system I switched between this commit and commit before. commit before the duration of page load is constant, whatever hostname is used. after this commit every first page load from domain is slow (6-8 seconds), repeated page loads from this domain are constant (400 ms).
I tried to use separate php-fpm-pools, separate document-roots - nothing helps.
Two complete different Installations on same machine do work - but if two hostnames on same machine share the same database and same data-dir, the access over two hostnames is very slow. API-access and ajax is fast, only pages with theming are affected.