kevinB-74
|
Hi,
I join this conversation. I had everyday crash server with such error : PHP Fatal error: Allowed memory size of 2684354560 bytes exhausted
I finally found it is compatibilty issue between Object Cache Pro and WPML.
Thanks to support my issue is now solved. What I did :
- Go to /wp-content/ folder on the site and create a folder named mu-plugins if there is not one already.
- Inside the mu-plugins folder create a PHP file with any name ( or wpml-non-persistent-cache.php ) and place the following code on it:
<?php
/**
* Plugin Name: WPML Non-Persistent Cache
* Description: A plugin to prevent persistent caching issues (temporary issue: compdev-220).
* Author: OnTheGoSystems
* Author URI: https://wpml.org/errata/problems-with-buddypress-multilingual-and-redis-object-cache/
* Version: 1.0.0
* Plugin Slug: compdev-220
*/
wp_cache_add_non_persistent_groups( [
'convert_url',
'element_translations',
'get_pages_adjust_ids',
'get_user_admin_language',
'translation_priority_relationships',
'translationmanagement--get_translation_job_id',
'wpml_cache_terms_per_lang',
'wpml_endpoints_support',
'wpml_pre_option_page',
'wpml_register_string_filter',
'wpml_register_string_filter--facetwp',
'wpml_slug_translation_records--post',
'wpml_slug_translation_records--taxonomy',
'wpml_st_cache',
'wpml_term_translation',
'wpml_tm_blog_translators--has_translators',
'wpml_wp_cache__group_keys',
] );
And open wp-config.php and add :
define('WP_REDIS_CONFIG', [
'non_persistent_groups' => [
'counts',
'plugins',
'themes',
'terms'
],
]);
I hope it will help you.
|