PHP Opcache command for Hyperf
Transplantation in laravel-opcache Opcache configuration reference OPcache configuration
This package requires hyperf 2.1 or newer.
You can install the package via Composer:
composer require wilbur-yu/hyperf-opcache
If you need to change config values, you can publish the config file with:
php bin/hyperf.php vendor:publish wilbur-yu/hyperf-opcache
- config
php bin/hyperf.php opcache:config
- status
php bin/hyperf.php opcache:status
- clear
php bin/hyperf.php opcache:clear
- compile
php bin/hyperf.php opcache:compile {--force}
Note: opcache.dups_fix must be enabled, or use the --force flag. If you run into "Cannot redeclare class" errors, enable opcache.dups_fix or add the class path to the exclude list.
Thanks to the laravel-opcache and their contributors
The MIT License (MIT). Please see License File for more information.