Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This can happen if code caching is active for OPcache (formerly Optimizer+).  The old code is in the byte code cache, and does not contain the changes made to the source.  Clearing the cache will allow the script to be cached with the new source.

For Zend Server version 2020.x, 2021.x or higher:

To manually clear the OPcache (formerly Optimizer+) cache, please go to the Zend Server administrator at:

Info
iconfalse

http://<your IBM i IP address>:10101/ZendServer/ 

Go to Configurations -> Components. Find 'Zend OPcache' on the list of components, and click the broom icon (Clear cache) at the far right on the same line in the table. Click OK in the pop up to finish. This will clear the cache, and the next time your changed script is run the changed version will be loaded into the cache. The OPcache cache can be cleared at any time, and does not require a restart of PHP.

Clearing the cache will allow your changed code to run with the expected changes.

For Zend Server version 9.1.x, 2018.0.x, 2019.0.x or higher:

...