Hi @cogz,
Thank you for contacting us.
Please add the following code in a php file(you can name it phpinfo.php)
<?php
phpinfo();
And place it in root directory (public_html). Then verify by going to the file (e.g. mysite.com/phpinfo.php) and ensure Opcache is turned on for the site. Also, can you confirm what PHP version you are current running?
Best,
Jonathan S
Thread Starter
cogz
(@cogz)
Hi, Please see below. Thanks!
PHP Version 7.4.11
Zend OPcache
Opcode Caching Up and Running
Optimization Enabled
SHM Cache Enabled
File Cache Disabled
Startup OK
Shared memory model mmap
Cache hits 235837
Cache misses 1794
Used memory 71300336
Free memory 62913496
Wasted memory 3896
Interned Strings Used memory 6291008
Interned Strings Free memory 0
Cached scripts 1762
Cached keys 1762
Max keys 16229
OOM restarts 0
Hash keys restarts 0
Manual restarts 1
Thread Starter
cogz
(@cogz)
Hi Jonathan,
did the information provided any insight to the reason Purge OpCache option is greyed out?
Thanks, Jay
Hi @cogz
Sorry for the delay here.
It may happen if your hosting disable the opcache_* commands, for example on our hosting.
Can you try to create a PHP file opcache-reset.php
Place this:
<?php opcache_reset();
And try to execute?
https://www.php.net/manual/en/function.opcache-reset.php
And check if the setting will show, if not, please, contact the hosting support and check if they have any restriction for the OpCache.
Let us know the result you got
Best Regards
Patrick Freitas
Hi @cogz
I hope you are doing well.
We haven’t heard from you in a while, I’ll mark this thread as resolved.
However, feel free to let us know if you have any additional question or problem.
Best Regards
Patrick Freitas