After cache backend access is very fast
-
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 512MBSample URI:
/wp-admin/
Sample Time:2025-11-04T16:46:04+07:00cache 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 = Onwp-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
You must be logged in to reply to this review.