Hi Saguaros, how are you?
I have 'random' 504 error issues: now I've added extra time to value in domain php settings > max_execution_time = 120, you can see connection with this website is so slow and 'blocked' some times...
I see there are some errors in db... I think I have to backup db before run 'fix'...
M.