Background of the issue:
My website has recently been facing an issue after I added an English translation. After starting to use WPML, this problem occurs. I have already followed all of the links below to solve the problem, but unfortunately, they did not help at all. https://wpml.org/forums/topic/continued-cpu-100-issues-directly-related-to-wpml-product-translations/ https://wpml.org/forums/topic/wpml-make-my-server-cpu-100/ https://wpml.org/forums/topic/high-cpu-usage-wpml/
At first, we thought the problem was caused by the Real Cookie Banner plugin because after disabling it, CPU usage returned to normal. However, the problem reappeared. I tested it with all of my plugins and themes, and unfortunately, the issue still persists. The problem disappears only when I disable WPML. I can turn on all other themes and plugins and everything is good, but when I activate WPML, it happens again, sometimes immediately and sometimes after 2-3 hours. PHP Log, Apache Log, Query Monitor, and MariaDB monitor did not help. If you need access to my website or my server (it is a dedicated server and I also have root user access), please let me know.
Symptoms:
CPU usage reaching 100% when WPML is activated.
Questions:
How can I fix the CPU usage problem caused by WPML?