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.
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';
});
from: https://github.com/LC43/opcache-status
- Fixed warnings when opcache was off
- Improve clear cache feedback
Improve flush cache[https://github.com/LC43/opcache-status/commit/5a9a87d42ab65c054726ada1681eaeb34b44feb6]not mixed into here
- 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)