So, I have a Scribunto Module page named Module:X. Since I have a lot of functions I simply put everything on one page and accordingly the page is very long.
Yesterday I made some changes and added some code. I clicked on "Publish changes" and then, first the website froze and after a while, I got a 504 Gateway Time-out
.
I tried changing the code in hopes of finding the problem and I think it has to do with its length. First I saw that the Error only occurred when the page was longer than 2100 lines. But then I deleted all comments and unnecessary linebreaks and the error occurred at around 1900 lines.
Has anyone experienced a similar problem or has an idea where it could come from?