scil/opcache-status

A one-page opcache status page

v0.3 2020-09-19 07:42 UTC

This package is auto-updated.

Last update: 2024-04-19 16:09:45 UTC


README

A one-page opcache status page for the PHP 5.5 opcode cache.

You don't need the opcode cache installed to help out with this. See the data-sample.php file for a dump of the data.

I know it is rather ugly, so please spruce it up. But I would like to keep it relatively small and to a single file so it is easy to drop into a directory anywhere without worrying about separate css/js/php files.

Screenshot

Change log

v0.3.0

change $_SERVER['PHP_SELF'] to $_SERVER['REQUEST_URI']. so this script can be used in Laravel route:

    Route::get('/opcache', function () {
        // $request = app()->make('request'); if ($request->query('clear')) { opcache_reset(); return back(); }

        require __DIR__ . '/../vendor/scil/opcache-status/opcache.php';

    });

v0.2.0

from: https://github.com/LC43/opcache-status

TODO

  • The ability to sort the list of cached scripts by the various columns
  • A better layout that can accommodate more of the script data without looking cluttered
  • A tuning suggestion tab (need to add a couple of things to the opcache output first though)