Date: Thu, 28 Mar 2024 18:25:01 +0000 (UTC) Message-ID: <750199222.393.1711650301980@library.aws.roguewave.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_392_261354312.1711650301979" ------=_Part_392_261354312.1711650301979 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Issue= span>
OPcache speeds up performance in two ways. The first is by caching= precompiled byte code. The second is by optimizing the OPcode prior = to writing to cache. PHP applications showing unexpected results can = sometimes be caused by an optimization. This happens rarely, but it c= an happen. One way to check if this is the problem is to disable opti= mization.
Environment
Any version of Zend Server.
Resolution
The default value for the Zend OPcache directive opcache.optimization_le= vel is:
0xffffffff
This hex value represents a bitmask flagging all optimizations to run.= p>
Please try setting this value to:
0
That is to say, just use the decimal numeral '0', so that the OPcache op= timizations do not run. This can improve stability for some applicati= ons. Byte code caching will still take place.
To set the directive, please go into the Zend Server UI, and go to Admin= istration -> Components (version 2019 or earlier) or Administration ->= ; Extensions (version 2020 or later). For later versions of Zend Serv= er, please make sure Advance View is set on. The Advance View switch = is just above the top of the table, towards the right. Find Zend OPca= che on the list of components, and give it one mouse click to expand the di= rectives. On the list of directives, find opcache.optimization_level = and set the value to 0 (the decimal digit zero). You can also change = the opcache.consistency_checks directive to 1 on this display. Once y= ou change the directive(s), the Save button on the top left of the table be= comes enabled. Click the Save button, and when prompted restart Zend = Server. The restart takes your web site down for a short while, so pl= ease schedule this operation for a time when this would be acceptable.
Consistency checks may also increase s= tability.