I am moving a Magento 22.214.171.124 website on an Ubuntu 16.04 LTS server.
The same website is working fine on another machine running openSUSE 12.3.
The website seems to be correctly working on the new machine, however the frontend is incredibly slow (it takes 5 minutes to load every page, even the contacts page). The backend is pretty fast instead.
I tried clearing the cache, disabling it but nothing changes.
Do you have any suggestion on what is possibly going wrong?