Opcache Issue

4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 29   (RSS)

Hi Mark,

That is curious. I've attached a test script that shows whether OPcache is running and the key settings it's using (which php.ini is loaded, where PHP looks for the extension, and so on).

Can you run it from a location where OPcache is already working, and again from your cmsb folder, and let me know how the two differ?

It's also worth dropping it into a parallel directory (e.g.,/opcache_test/) to see if something in the CMSB .htaccess or config files is affecting it.

Let me know what you find. Thanks!

Dave Edis - Senior Developer
interactivetools.com
Attachments:

opcache_status.php 5K

Ok I figured it out. It's because Opcache is now enabled by default from PHP 8.5 onwards, so if you have a php.ini with this line:

zend_extension=opcache.so;

Then it causes a bit of a conflict and needs to be commented out or removed:

;zend_extension=opcache.so;

Hi mark99, 

Okay, great.  Glad it's working and thanks for the update!

Dave Edis - Senior Developer
interactivetools.com