在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):appstract/laravel-opcache开源软件地址(OpenSource Url):https://github.com/appstract/laravel-opcache开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Laravel OPcacheThis package contains some useful Artisan commands to work with PHP OPcache. read the article on Medium.If you want to learn more about OPcache and what it can do for your Laravel application,RequirementsThis package requires Laravel 7 or newer. InstallationYou can install the package via Composer: composer require appstract/laravel-opcache If you need to change config values, you can publish the config file with: php artisan vendor:publish --provider="Appstract\Opcache\OpcacheServiceProvider" --tag="config" Make sure your APP_URL is set correctly in .env. If you want to set a different url to call the OPcache routes (for use with a load balancer for example), you can set OPCACHE_URL. UsageClear OPcache: php artisan opcache:clear Show OPcache config: php artisan opcache:config Show OPcache status: php artisan opcache:status Pre-compile your application code: php artisan opcache:compile {--force} Note: Programmatic usage: use Appstract\Opcache\OpcacheFacade as OPcache;
...
OPcache::clear(); ContributingContributions are welcome, thanks to y'all :) About AppstractAppstract is a small team from The Netherlands. We create (open source) tools for webdevelopment. LicenseThe MIT License (MIT). Please see License File for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论