THE concern seems to be corrected with a version of Joomla >= 5.4 beta3

On a site hosted by OVH and if we activate the File cache I have this display error:

Warning: Zend OPcache API is restricted by "restrict_api" configuration directive

If you look at the php options (displayed by phpinfo)

We have:

OVH_opcache.png

This means that there is a restriction of access to opcache by OVH

To fix this error I made a change in  libraries\vendor\joomla\filesystem\src\File.php

I commented on the line that contains opcache_invalidate

/**
     * Invalidate any opcache for a newly written file immediately, if opcache* functions exist and if this was a PHP file.
     *
     * @param   string  $file  The path to the file just written to, to flush from opcache
     *
     * @return void
     */

    public static function invalidateFileCache($file)
    {
        if (function_exists('opcache_invalidate')) {
            $info = pathinfo($file);

            if (isset($info['extension']) && $info['extension'] === 'php') {
                // Force invalidation to be absolutely sure the opcache is cleared for this file.
                //opcache_invalidate($file, true);
            }
        }
    }
}