Fix Customizer stuck loading when PHP OPcache is full
If the WordPress Customizer stays on Loading or times out after you activate a theme add-on, a full PHP OPcache can be one possible cause. This guide shows you how to confirm that OPcache is full, apply a server-side fix, and verify that the Customizer works again.
In this article
Confirm this guide matches your issue
Use this guide only if your hosting environment reports opcode_cache_full as true.
The Customizer loading forever can happen for different reasons, so the symptom alone does not confirm OPcache exhaustion. If you cannot confirm opcode_cache_full as true, skip to What to do if OPcache is not full or the issue remains.
Check the server OPcache status
- Log in to your WordPress Dashboard.
- Go to Tools > Site Health.
- Open the Info tab.
- Expand the Server section.
- Look for OPcache details, especially whether
opcode_cache_fullis set totrue.
If you are not sure where to find server details, follow How to verify your PHP version for the same Site Health workflow.
If your WordPress Site Health data does not show OPcache details, contact your hosting provider and ask them to check your web-server PHP OPcache status directly.
Increase OPcache capacity and reload PHP
When opcode_cache_full is true, ask your hosting provider or server administrator to increase OPcache capacity in php.ini and then reload the PHP service.
The values below are a confirmed working example from one resolved case. They are not universal requirements for every server:
opcache.memory_consumption=256
opcache.interned_strings_buffer=32
opcache.max_accelerated_files=30000After changing php.ini, the active PHP process must be reloaded before the new values apply. On IIS, this is done by recycling the PHP application pool.
⚠️ Important: Do not treat these exact numbers as mandatory defaults. Your host should choose values based on your site's workload and available server resources.
Verify the fix
- Keep the same theme add-on active that previously triggered the issue.
- Open the Customizer again.
- Confirm the Customizer finishes loading normally.
- Re-check OPcache status and confirm
opcode_cache_fullis no longer reported astrue.
What to do if OPcache is not full or the issue remains
If opcode_cache_full is not true, or the Customizer still does not load after OPcache changes and a PHP reload:
- Stop applying OPcache changes as a generic fix.
- Review broader hosting checks in Hosting Compatibility.
- Continue troubleshooting for other causes using The product doesn't work as expected - Troubleshooting guide.
