Long time to display the nextcloud website

Nextcloud runs in a separate lxc

  • Debian 11
  • Apache/2.4.54 (Debian)
  • pHP 8.0.19
  • 10.5.15-MariaDB-0+deb11u1
  • Nextcloud 24.0.1

Everything works great. I only use the web version of nextcloud.
When I put the nextcloud url in the web browser, then I have to wait 7-8 seconds for nextcloud to appear.
It seems like a very long time.
If nextcloud is already displayed, then it works normally.
If I turn off the PC from which I log in to nextcloud, or log in after 3-4 hours, I have to wait 7-8 seconds again. I also connect externally to Collabora and also have to wait 7-8 seconds for the document to open. The Nextcloud server and the Collabora server are within the LAN and in the DMZ, respectively.

There are also wordpress websites in the DMZ and they are displayed very quickly (milliseconds).