Opcache configuration is wrong - except it isn't

I just manually upgraded from NextCloud 14 to NextCloud 16 (The updater didn’t work). I’m running PHP 7.3

PHP 7.3.9 (cli) (built: Aug 27 2019 22:52:39) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.9, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.9, Copyright (c) 1999-2018, by Zend Technologies

The settings recommended by NextCloud for opcache are in my /etc/php.ini file and I’ve restarted the apache server but I still get the following in NextCloud Settings

The PHP OPcache is not properly configured. [For better performance it is recommended](https://docs.nextcloud.com/server/16/go.php?to=admin-php-opcache) to use the following settings in the `php.ini` :

```
opcache.enable=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
```

What could be causing this?

Thanks

Are your current settings exactly set as described? Please post your current configuration.

They are, but turns out that the problem was they were in php.ini and were being overridden by the defaults in /etc/php.d/10-opcache.ini

Sigh

When I updated the values in there, the warnings went away