Error establishing a redis connection

SYSTEM INFORMATION
OS type and version AlmaLinux 8.10
Webmin version 2.202

Hi everyone,

I’ve been experiencing an intermittent issue with Redis on my AlmaLinux 8.10 server managed via Webmin/Virtualmin. I’m using the WP Redis Object Cache plugin for WordPress, and every couple of months, some or all of my websites start throwing the error:
Error establishing a Redis connection. Delete the object-cache.php file.

After deleting the object-cache.php file, the issue resolves temporarily, but it keeps recurring. Has anyone else faced this problem?

I can’t remember the exact steps of installing redis.

I’m wondering if this is a server configuration issue, a memory problem, or something else entirely. Should I adjust Redis or PHP settings? Or is this a known issue with the plugin?

Any insights or suggestions would be greatly appreciated!
I am also giving my current redis ( disabled from my websited right now ) informations
used_memory:853072
used_memory_human:833.08K
used_memory_rss:492191744
used_memory_rss_human:469.39M
used_memory_peak:974202960
used_memory_peak_human:929.07M
used_memory_peak_perc:0.09%
used_memory_overhead:840694
used_memory_startup:791000
used_memory_dataset:12378
used_memory_dataset_perc:19.94%
allocator_allocated:1355280
allocator_active:12640256
allocator_resident:534679552
total_system_memory:8245850112
total_system_memory_human:7.68G
used_memory_lua:37888
used_memory_lua_human:37.00K
used_memory_scripts:0
used_memory_scripts_human:0B
number_of_cached_scripts:0
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:9.33
allocator_frag_bytes:11284976
allocator_rss_ratio:42.30
allocator_rss_bytes:522039296
rss_overhead_ratio:0.92
rss_overhead_bytes:-42487808
mem_fragmentation_ratio:606.10
mem_fragmentation_bytes:491379680
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_clients_slaves:0
mem_clients_normal:49694
mem_aof_buffer:0
mem_allocator:jemalloc-5.1.0
active_defrag_running:0
lazyfree_pending_objects:0

We don’t maintain either Redis or the plugin you’re using (and I don’t use either), so we may not be the best people to ask.

I do not think this is a Redis issue (I have Redis running quite happily on a production VS)

I also doubt it is a PHP specific problem - as long as you are using an up-to-date version.

I do think this is WP - and probably the plugin - so perhaps direct the problem at them - good luck.