I am using WPML for a long time, but recently I encountered a strange behaviour.
On each page load, a huge number of queries (cc. 110000) slows down the page load. It only happens if admin user is logged in, and only on frontend pages.
2 processes generate these queries:
WPML_Element_Translation->maybe_populate_cache
WP_Post::get_instance (Called by YITH_WCWL->add_rewrite_rules)
Link to a page where the issue can be seen: hidden link