diff --git a/lib/PhpStatistics.php b/lib/PhpStatistics.php index 928d1ed2..4ad7a2c9 100644 --- a/lib/PhpStatistics.php +++ b/lib/PhpStatistics.php @@ -45,6 +45,10 @@ public function getPhpStatistics(): array { 'memory_limit' => $this->phpIni->getBytes('memory_limit'), 'max_execution_time' => $this->phpIni->getNumeric('max_execution_time'), 'upload_max_filesize' => $this->phpIni->getBytes('upload_max_filesize'), + 'opcache_revalidate_freq' => $this->phpIni->getNumeric('opcache.revalidate_freq'), + // NOTE: If access to add'l OPcache *config* parameters is desired consider + // implementing a getOPcacheConfig() wrapper for PHP's opcache_get_configuration() + // like we do for PHP's opcache_get_status() already below 'opcache' => $this->getOPcacheStatus(), 'apcu' => $this->getAPCuStatus(), 'extensions' => $this->getLoadedPhpExtensions(), diff --git a/templates/settings-admin.php b/templates/settings-admin.php index 961afa62..e1e5679f 100644 --- a/templates/settings-admin.php +++ b/templates/settings-admin.php @@ -356,6 +356,10 @@ function FormatMegabytes(int $byte): string {

t('Upload max size:')); ?> +

+

+ t('OPcache Revalidate Frequency:')); ?> +

t('Extensions:')); ?>