|
Background of the issue:
I am trying to resolve memory exhaustion issues on a production site running WPML. The site is using PHP 8.3 with a memory limit of 1024M. When LiteSpeed Object Cache with a Redis backend is enabled, WPML consumes excessive memory during certain queries. The issue can be seen at lien caché.
Symptoms:
We are experiencing repeated PHP fatal errors due to memory exhaustion. The error message is: 'PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted in sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php on line 133'. The site runs without fatal errors when the Object Cache is disabled, but with it enabled, WPML objects quickly fill memory.
Questions:
Are there known issues with WPML and persistent object caches (Redis/LiteSpeed Object Cache) that could explain these memory spikes?
Is there a recommended list of WPML-related cache groups/keys that should be excluded from object caching?
Are there best practices to reduce WPML memory footprint?
|