Builder Stacks Hub (10 Guides)
Zend OPcache & Interned Strings Buffer for WordPress Builders
Elementor Pro + WooCommerce compile 14,000+ PHP files; pinning 128 MB OPcache and 24 MB interned strings eliminates recompile CPU spikes.
128 MB OPcache | 20,000 max_accelerated_files
Why Default 64 MB OPcache Thrashes on Elementor
WordPress core plus Elementor Pro, WooCommerce, and 15 active plugins easily exceed PHP default 10,000 max_accelerated_files and 64 MB opcache.memory_consumption. Cache restarts force every PHP-FPM child to re-parse files from disk.
Production OPcache Directives for PHP 8.3
Set opcache.memory_consumption=128, opcache.interned_strings_buffer=24, and opcache.max_accelerated_files=20000. On UltaHost VDS or dedicated PHP-FPM pools, this adds only 128 MB shared once across all workers while cutting worker CPU by 25%.
Measured Thresholds & Configuration
| OPcache Setting | PHP Default | Elementor Production | Effect |
|---|---|---|---|
| opcache.memory_consumption | 64 or 128 | 128 MB | Prevents cache full restarts |
| opcache.interned_strings_buffer | 8 | 24 MB | Shares builder class strings |
| opcache.max_accelerated_files | 10000 | 20000 | Fits Elementor + Woo + Addons |