Skip to content

A Magento 2 module to show some PHP OpCache-related information in the admin.

License

Notifications You must be signed in to change notification settings

element119/module-admin-opcache-report

Repository files navigation

element119 | Admin OpCache Report

📝 Features

✔️ Provides a current health check of the PHP OpCache

✔️ Flush PHP OpCache from the admin

✔️ Theme agnostic

✔️ Built in accordance with Magento best practises

✔️ Dedicated module configuration section and custom admin user controls

✔️ Seamless integration with Magento

✔️ Built with developers and extensibility in mind to make customisations as easy as possible

✔️ Installable via Composer

⏳ Logging of OpCache statistics for temporal analysis

⏳ Data visualisation


🔌 Installation

Run the following command to install this module:

composer require element119/module-admin-opcache-report
php bin/magento setup:upgrade

⏫ Updating

Run the following command to update this module:

composer update element119/module-admin-opcache-report
php bin/magento setup:upgrade

❌ Uninstallation

Run the following command to uninstall this module:

composer remove element119/module-admin-opcache-report
php bin/magento setup:upgrade

📚 User Guide

Configuration for this module can be found in the Magento admin under Stores -> Settings -> Configuration -> Advanced -> System -> PHP OpCache Report.


OpCache Report

The OpCache information can be found in the admin under System -> Tools -> PHP OpCache Report.


Memory Units

The units used when referencing memory in the OpCache report. The default value is GB.


Float Precision

The number of decimal places to use in the OpCache report.


Date Format

The date format to use in the OpCache report. Supports PHP date formats.


📸 Screenshots & GIFs

Report - OpCache Disabled

e119-opcache-report-disabled

Report - OpCache Enabled

e119-opcache-report-enabled