Home Forums ACF PRO PHP Error with Redis Cache


PHP Error with Redis Cache

  • I recently got the following error when using ACF Pro on a site with Redis as the object-cache:

    PHP Fatal error:  Uncaught exception 'RedisException' with message 'read error on connection' in /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/wp-redis/object-cache.php:1025
    Stack trace:
    #0 [internal function]: Redis->get('acf:format_valu...')
    #1 /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/wp-redis/object-cache.php(1025): call_user_func_array(Array, Array)
    #2 /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/wp-redis/object-cache.php(590): WP_Object_Cache->_call_redis('get', 'acf:format_valu...')
    #3 /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/wp-redis/object-cache.php(129): WP_Object_Cache->get('format_value/po...', 'acf', false, false)
    #4 /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/advanced-custom-fields-pro/api/api-value.php(368): wp_cache_get('format_value/po...', 'acf', false, false)
    #5 /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/advanced-custom-fields-pro/api/api-templat in /srv/bindings/989354f64e9243579dd62044d04bb178/code/wp-content/plugins/wp-redis/object-cache.php on line 1025

    On a possibly related note, I’ve noticed that ACF fields show up empty after clearing my (Varnish) caches.

    Any idea what could be causing this? I’ve seen mention that ACF should work well with object caching but I wasn’t having these issues until I switched.

  • Hi @murada

    ACF has version 5.4.5 now. Could you please update it and see if it fixes the issue?

    Thanks 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘PHP Error with Redis Cache’ is closed to new replies.