• Resolved net

    (@krstarica)


    After upgrading from 22.0 to to 22.1 started seeing dozens of “Predis\Connection\ConnectionException: Error while reading line from the server” errors every 15-20 minutes:

    [23-Feb-2024 19:04:47 UTC] Predis\Connection\ConnectionException: Error while reading line from the server. [unix:/var/run/redis/redis.sock] in /home/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php:131
    Stack trace:
    #0 /home/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(286): Predis\Connection\AbstractConnection->onConnectionError()
    #1 /home/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(119): Predis\Connection\StreamConnection->read()
    #2 /home/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/AbstractConnection.php(111): Predis\Connection\AbstractConnection->readResponse()
    #3 /home/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Connection/StreamConnection.php(232): Predis\Connection\AbstractConnection->executeCommand()
    #4 /home/wordpress/wp-content/plugins/redis-cache/dependencies/predis/predis/src/Client.php(225): Predis\Connection\StreamConnection->connect()
    #5 /home/wordpress/wp-content/object-cache.php(924): Predis\Client->connect()
    #6 /home/wordpress/wp-content/object-cache.php(546): WP_Object_Cache->connect_using_predis()
    #7 /home/wordpress/wp-content/object-cache.php(256): WP_Object_Cache->__construct()
    #8 /home/wordpress/wp-includes/load.php(856): wp_cache_init()
    #9 /home/wordpress/wp-settings.php(131): wp_start_object_cache()
    #10 /home/wordpress/wp-config.php(128): require_once('...')
    #11 /home/wordpress/wp-load.php(50): require_once('...')
    #12 /home/wordpress/wp-blog-header.php(13): require_once('...')
    #13 /home/wordpress/index.php(17): require('...')
    #14 {main}

    When rollback to 22.0 the errors are gone.

    Using Redis Object Cache plugin: https://wordpress.org/plugins/redis-cache/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Plugin Support amboutwe

    (@amboutwe)

    wp_cache_flush_group( 'orphaned_counts' )
    This updates incoming link counts (internal links). Features relying on this information may be impacted, like orphaned content post filters and workouts, could be impacted or cause other errors if removed.

    wp_cache_delete( ‘orphaned_count_’ . $post_type )
    I don’t see this in the current version (22.7) and a quick search didn’t find it in the previous version (22.6). It’s also not in the current code here. It could be safer than the first one to comment out since it’s not in the current code. As mentioned above, any features that rely on this could be impacted.

    Thread Starter net

    (@krstarica)

    @amboutwe @tillkruess After commenting out wp_cache_flush_group( 'orphaned_counts' ) in the latest version 22.7, the issue is gone.

    BTW, noticed that orphaned_counts is not present anywhere else in the code.

Viewing 2 replies - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.