• Hi Kevin,

    First, I want to sincerely thank you for creating the EAC ObjectCache plugin. After enabling it, the backend performance of my site has improved significantly, and I truly appreciate your work in optimizing WordPress object caching.

    EAC ObjectCache v2.1.2
    APCu v5.1.24 – Using 1.8MB of 512MB

    Sample URI: /wp-admin/
    Sample Time: 2025-11-04T16:46:04+07:00

    cache hits 2,683 (98.78%)

    cache misses 33

    L1 cache hits 2,555 (94.21%)

    L1 cache misses 157

    L2 APCu hits 128 (94.12%)

    L2 APCu misses 8

    However, I have encountered a recurring fatal error that causes crashes on my setup:

    PHP Fatal error: Uncaught Error: Call to a member function get() on null in /wp-content/plugins/eacobjectcache/src/wp-cache.php:187

    Here is my environment for reference:

    • VPS: AMD, 2 CPU, 6GB RAM
    • Web server: OpenLiteSpeed 1.8.4
    • OS: AlmaLinux 8.10
    • LSPHP 8.4
    • WordPress: 6.8.3
    • WooCommerce: 10.3.3

    PHP APC Configuration:

    apc.enabled = On
    apc.enable_cli = On
    apc.shm_size = 2G
    apc.entries_hint = 131072
    apc.ttl = 0
    apc.canonicalize = 1
    apc.stat = 0
    apc.gc_ttl = 86400
    apc.mmap_file_mask = /tmp/apc.XXXXXX
    apc.use_request_time = 1
    apc.serializer = igbinary
    apc.rfc1864 = Off
    apc.slam_defense = On

    wp-config.php relevant settings:

    define( ‘WP_CACHE’, true );
    define( ‘EAC_OBJECT_CACHE_ENABLE’, true );
    define( ‘EAC_OBJECT_CACHE_USE_APCU’, true );
    define( ‘EAC_OBJECT_CACHE_USE_DB’, false );
    define( ‘EAC_OBJECT_CACHE_PERSISTENT’, true );
    define( ‘EAC_OBJECT_CACHE_DEFAULT_EXPIRE’, 86400 * 7 );
    define( ‘EAC_OBJECT_CACHE_PREFETCH_MISSES’, false );
    define( ‘EAC_OBJECT_CACHE_OPTIMIZE_MEMORY’, false );
    define( ‘EAC_OBJECT_CACHE_EXCLUDE_GROUPS’, serialize( array(
    ‘wc_session’,
    ‘wc_cart’,
    ‘woocommerce_items_’,
    ‘transient_wc_’
    ) ) );
    define( ‘EAC_OBJECT_CACHE_DEBUG’, false );

    I’m hoping you could take a look and possibly provide a fix for this error with my current setup. I really appreciate your time and effort, and again, thank you for developing such a helpful plugin.

    Best regards,
    Nguyen Van Tuan

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Burkholder

    (@kevinburkholder)

    Nguyen Van Tuan

    Thank you. It makes me happy that you find value in the work I’ve done and I appreciate you saying so.

    As for the error you’re seeing – first, my apologies for not seeing this sooner, second, this error may be caused by another plugin or function calling wp_cache_get() before the object cache is initialized by WP (unlikely) or by something nullifying the $wp_object_cache global variable. It might be helpful to see a backtrace from the error (but not necessarily definitive). It could be difficult to find the source of the problem but I’d start with any cache/optimization related plugins – disable and see if the problem goes away.

    I could possibly add code to circumvent the error but not the underlying problem.

    Thanks again,
    Kevin

Viewing 1 replies (of 1 total)

You must be logged in to reply to this review.