<p>This is very likely a bug that has been fixed in <a href="https://github.com/craftcms/server-check/pull/25" rel="nofollow noreferrer">https://github.com/craftcms/server-check/pull/25</a> and will be included in the next release./</p>

CC BY-SA 4.0
2023-09-19T04:34:58.383Z
2023-09-19T04:34:58.383Z
Brad Bell
<p>I updated my Craft installation to 4.5.3, right? And then I noticed this warning pops up in the system report, saying, &quot;The OPcache extension is recommended in production environments.&quot; Kinda threw me for a loop because when I checked my PHP info, it says that opcache.enable is actually On.</p>
<p>For context, I'm using CraftCMS with Nginx and PHP 8.1, all bundled in a Docker image. So, I hopped into the container using docker exec -it  /bin/sh and then ran php -i | grep 'opcache' to double-check. And here's what I got:</p>
<pre><code>opcache.blacklist_filename =&gt; no value =&gt; no value
opcache.consistency_checks =&gt; 0 =&gt; 0
opcache.dups_fix =&gt; Off =&gt; Off
opcache.enable =&gt; On =&gt; On
opcache.enable_cli =&gt; Off =&gt; Off
opcache.enable_file_override =&gt; Off =&gt; Off
opcache.error_log =&gt; no value =&gt; no value
opcache.file_cache =&gt; no value =&gt; no value
opcache.file_cache_consistency_checks =&gt; On =&gt; On
opcache.file_cache_only =&gt; Off =&gt; Off
opcache.file_update_protection =&gt; 2 =&gt; 2
opcache.force_restart_timeout =&gt; 180 =&gt; 180
opcache.huge_code_pages =&gt; Off =&gt; Off
opcache.interned_strings_buffer =&gt; 16 =&gt; 16
opcache.jit =&gt; tracing =&gt; tracing
opcache.jit_bisect_limit =&gt; 0 =&gt; 0
opcache.jit_blacklist_root_trace =&gt; 16 =&gt; 16
opcache.jit_blacklist_side_trace =&gt; 8 =&gt; 8
opcache.jit_buffer_size =&gt; 0 =&gt; 0
opcache.jit_debug =&gt; 0 =&gt; 0
opcache.jit_hot_func =&gt; 127 =&gt; 127
opcache.jit_hot_loop =&gt; 64 =&gt; 64
opcache.jit_hot_return =&gt; 8 =&gt; 8
opcache.jit_hot_side_exit =&gt; 8 =&gt; 8
opcache.jit_max_exit_counters =&gt; 8192 =&gt; 8192
opcache.jit_max_loop_unrolls =&gt; 8 =&gt; 8
opcache.jit_max_polymorphic_calls =&gt; 2 =&gt; 2
opcache.jit_max_recursive_calls =&gt; 2 =&gt; 2
opcache.jit_max_recursive_returns =&gt; 2 =&gt; 2
opcache.jit_max_root_traces =&gt; 1024 =&gt; 1024
opcache.jit_max_side_traces =&gt; 128 =&gt; 128
opcache.jit_prof_threshold =&gt; 0.005 =&gt; 0.005
opcache.lockfile_path =&gt; /tmp =&gt; /tmp
opcache.log_verbosity_level =&gt; 1 =&gt; 1
opcache.max_accelerated_files =&gt; 10000 =&gt; 10000
opcache.max_file_size =&gt; 0 =&gt; 0
opcache.max_wasted_percentage =&gt; 10 =&gt; 10
opcache.memory_consumption =&gt; 128 =&gt; 128
opcache.opt_debug_level =&gt; 0 =&gt; 0
opcache.optimization_level =&gt; 0x7FFEBFFF =&gt; 0x7FFEBFFF
opcache.preferred_memory_model =&gt; no value =&gt; no value
opcache.preload =&gt; no value =&gt; no value
opcache.preload_user =&gt; no value =&gt; no value
opcache.protect_memory =&gt; Off =&gt; Off
opcache.record_warnings =&gt; Off =&gt; Off
opcache.restrict_api =&gt; no value =&gt; no value
opcache.revalidate_freq =&gt; 0 =&gt; 0
opcache.revalidate_path =&gt; Off =&gt; Off
opcache.save_comments =&gt; On =&gt; On
opcache.use_cwd =&gt; On =&gt; On
opcache.validate_permission =&gt; Off =&gt; Off
opcache.validate_root =&gt; Off =&gt; Off
opcache.validate_timestamps =&gt; Off =&gt; Off
</code></pre>
<p>Any ideas what's going on?</p>
<p><a href="https://i.sstatic.net/FYV3l.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FYV3l.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-09-15T15:16:49.370Z
Same issue actually
RomanAvr
<craft4><settings><docker>
OPcache extension Warning
# OPcache extension Warning

(Asked by: username_0 on 2023-09-15)

I updated my Craft installation to 4.5.3, right? And then I noticed this warning pops up in the system report, saying, "The OPcache extension is recommended in production environments." Kinda threw me for a loop because when I checked my PHP info, it says that opcache.enable is actually On.
For context, I'm using CraftCMS with Nginx and PHP 8.1, all bundled in a Docker image. So, I hopped into the container using docker exec -it  /bin/sh and then ran php -i | grep 'opcache' to double-check. And here's what I got:
opcache.blacklist_filename => no value => no value
opcache.consistency_checks => 0 => 0
opcache.dups_fix => Off => Off
opcache.enable => On => On
opcache.enable_cli => Off => Off
opcache.enable_file_override => Off => Off
opcache.error_log => no value => no value
opcache.file_cache => no value => no value
opcache.file_cache_consistency_checks => On => On
opcache.file_cache_only => Off => Off
opcache.file_update_protection => 2 => 2
opcache.force_restart_timeout => 180 => 180
opcache.huge_code_pages => Off => Off
opcache.interned_strings_buffer => 16 => 16
opcache.jit => tracing => tracing
opcache.jit_bisect_limit => 0 => 0
opcache.jit_blacklist_root_trace => 16 => 16
opcache.jit_blacklist_side_trace => 8 => 8
opcache.jit_buffer_size => 0 => 0
opcache.jit_debug => 0 => 0
opcache.jit_hot_func => 127 => 127
opcache.jit_hot_loop => 64 => 64
opcache.jit_hot_return => 8 => 8
opcache.jit_hot_side_exit => 8 => 8
opcache.jit_max_exit_counters => 8192 => 8192
opcache.jit_max_loop_unrolls => 8 => 8
opcache.jit_max_polymorphic_calls => 2 => 2
opcache.jit_max_recursive_calls => 2 => 2
opcache.jit_max_recursive_returns => 2 => 2
opcache.jit_max_root_traces => 1024 => 1024
opcache.jit_max_side_traces => 128 => 128
opcache.jit_prof_threshold => 0.005 => 0.005
opcache.lockfile_path => /tmp => /tmp
opcache.log_verbosity_level => 1 => 1
opcache.max_accelerated_files => 10000 => 10000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 10 => 10
opcache.memory_consumption => 128 => 128
opcache.opt_debug_level => 0 => 0
opcache.optimization_level => 0x7FFEBFFF => 0x7FFEBFFF
opcache.preferred_memory_model => no value => no value
opcache.preload => no value => no value
opcache.preload_user => no value => no value
opcache.protect_memory => Off => Off
opcache.record_warnings => Off => Off
opcache.restrict_api => no value => no value
opcache.revalidate_freq => 0 => 0
opcache.revalidate_path => Off => Off
opcache.save_comments => On => On
opcache.use_cwd => On => On
opcache.validate_permission => Off => Off
opcache.validate_root => Off => Off
opcache.validate_timestamps => Off => Off

Any ideas what's going on?

**Tags:** craft4, settings, docker
> **Comments:**
> **username_1**: Same issue actually  

---

## 1 answers

### Answer by username_2 on 2023-09-19. Score: 1

This is very likely a bug that has been fixed in <https://github.com/craftcms/server-check/pull/25> and will be included in the next release./


---

