This package contains some useful Artisan commands to work with PHP OPcache.
If you want to learn more about OPcache and what it can dor for your Laravel app, you can read this article on Medium.
You can install the package via composer:
composer require appstract/laravel-opcache
Then register the service provider:
// config/app.php
'providers' => [
...
Appstract\Opcache\OpcacheServiceProvider::class,
];
Make sure your APP_URL is set correctly.
Run one of the commands on your server.
Clear OPcache:
php artisan opcache:clear
Show OPcache config:
php artisan opcache:config
Show OPcache status:
php artisan opcache:status
Programmatic usage:
// use Appstract\Opcache\OpcacheFacade as OPcache;
OPcache::clear()
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email hello@appstract.team instead of using the issue tracker.
Appstract is a small team from The Netherlands. <3 Laravel, Vue and other awesome tools.
The MIT License (MIT). Please see License File for more information.