Leantime / leantime

Leantime is a goals focused project management system for non-project managers. Building with ADHD, Autism, and dyslexia in mind.
https://leantime.io
GNU Affero General Public License v3.0
4.41k stars 578 forks source link

[BUG] Slow frontend if proxy in place #2234

Closed macidev closed 1 week ago

macidev commented 7 months ago

What set up are you using

Describe the bug Leantime get's really slow if you have a proxy running. This is caused by the function getFeed() and hasNews() from app/Domain/Notificatoins/Services/News.php. If there's no connection without a proxy, both run in a timeout and therefor slowing every request down. Commenting major parts out and just write an return (false) in the function, solves the problematic.

To Reproduce Steps to reproduce the behaviour:

  1. get Leantime running only behind a proxy and php won't be able to connect to the Leantime website.

Expected behavior Not slowing down the application because of a time-out for the current version. Maybe once a day or once a week. Alternative would be if Leantime would support connections through a proxy.

Leantime Version 3.0.0 - 3.0.2

Server Apache, PHP 8.1, MySQL version unknown, behind proxy

hnegadi commented 7 months ago

We have no proxy running but we are running leantime 3.0.2 on a VM. We just doubled the processors allocation and RAM, It has now 6 logical processors allocated along side with 8192 MB of RAM but it doesn't seem to make a difference. My Work Page can take up to 7 seconds to refresh and it refreshes eacht time we open a todo and close it. Server Apache, PHP 8.2, MySQL not behind proxy. VM is running ubuntu 20.04 server

puzzle9 commented 1 week ago

As long as the network accessing https://leantime.io is not good, it will appear

marcelfolaron commented 1 week ago

This should have been closed. We made the call async a while ago solving this issue