WP linking problem

hey guys,
my website is giving back 504:timeout error on only wp pages and only on reload. If I load the main page first than it has no problem. but if i load for example the contact(Kapcsolat) page than it collapses. Any idea how to find this bug? (in developement mode it loads)
https://www.skioutlet.hu/shop/
thx,
kris