Actually, you might be right. I fixed the problem.
At first try, this command did not change anything:
plesk ext wp-toolkit --clear-cache -instance-id <id>
Then I changed the PHP handler, and switched back to the previous one (FastCGI). Then I changed the domain names from the WP settings...