You still need Redis (or Valkey) server to use the Redis Object Cache plugin.
I have now in UPSTASH Redis Server, i added in WPConfig this code:
Error:
[24-Feb-2025 12:31:16 UTC] RedisException: read error on connection to tls://equipped-boa-18272.upstash.io:6379 in …/wp-content/object-cache.php:1416
Stack trace: 0 …/wp-content/object-cache.php(1416): Redis->set(‘nt0vl:options:a…’, ‘a:2052:{s:18:”w…’, Array) 1 …/wp-content/object-cache.php(1208): WP_Object_Cache->add_or_replace(true, ‘alloptions’, Array, ‘options’, 0) 2 …/wp-content/object-cache.php(63): WP_Object_Cache->add(‘alloptions’, Array, ‘options’, 0) 3 …/wp-includes/option.php(641): wp_cache_add(‘alloptions’, Array, ‘options’) 4 …/wp-includes/option.php(164): wp_load_alloptions() 5 [internal function]: get_option(‘_wpml_media’, Array) 6 …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(‘get_option’, Array) 7 [internal function]: WPML\LIB\WP\Option::WPML\FP{closure}(‘_wpml_media’, Array) 8 …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array) 9 …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/media/Option.php(156): WPML\LIB\WP\Option::__callStatic(‘getOr’, Array) 10 …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/core-api/core/media/Option.php(38): WPML\Media\Option::get(‘starting_help’) 11 …/wp-content/plugins/sitepress-multilingual-cms/classes/media/Loader.php(18): WPML\Media\Option::isSetupFinished() 12 …/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(78): WPML\Media\Loader->add_hooks() 13 …/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(51): WPML_Action_Filter_Loader->load_factory_or_action(‘WPML\Media\Load…’, false) 14 …/wp-content/plugins/sitepress-multilingual-cms/sitepress.php(256): WPML_Action_Filter_Loader->load(Array) 15 …/wp-settings.php(526): include_once(‘/www/htdocs/w01…’) 16 …/wp-config.php(96): require_once(‘/www/htdocs/w01…’) 17 …/wp-load.php(50): require_once(‘/www/htdocs/w01…’) 18 …/wp-admin/admin-ajax.php(22): require_once(‘/www/htdocs/w01…’) 19 {main}
-
This reply was modified 3 weeks, 2 days ago by
kamran1331.
-
This reply was modified 3 weeks, 2 days ago by
kamran1331.
define(‘WP_REDIS_CLIENT’, ‘phpredis’);
define(‘WP_REDIS_SCHEME’, ‘tls’);
define(‘WP_REDIS_HOST’, ‘equippe.upstash.io’);
define(‘WP_REDIS_PORT’, 6379);
define(‘WP_REDIS_PASSWORD’, ‘AUdgxMA’);
define(‘WP_REDIS_DATABASE’, 0);
define(‘WP_REDIS_LAZY’, true);
define(‘WP_REDIS_TIMEOUT’, 1);
Does the error occur only rarely and does WordPress show you “Status: Connected”?
i make the timeout from 1 sec to 5 sec. And start it again, It start to write in Redis Server but all our Website was not to open, it was busy, on the backround Redis blocked our website. Have Redis in first time (write to Redis) no paralel Thread? I was forced to delete the plugin and also delete all connections to Redis to make the website accessible for customers.
I’d suggest hiring a developer to assist you with the setup of Redis/Valkey.
Using a remote server like Upstash will have a lot of latency and is not suitable for WordPress caching.
Well, if I could install it locally, I would. Well, then I can’t.