定制 abenevaut/laravel-opcache-clear 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

abenevaut/laravel-opcache-clear

最新稳定版本:5.4.0

Composer 安装命令:

composer require abenevaut/laravel-opcache-clear

包简介

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

README 文档

README

Build Status

Clear OPcache with ease

This Laravel 5 package allows you to clear OPcache, solving a common problem related to cache invalidation during atomic deployments (also called "zero downtime deploy").

Getting Started

These instructions allows you to install the package into an existing Laravel app.

Prerequisities

Laravel 5.4 up&running installation.

Installation

You can install this package via Composer using:

composer require abenevaut/laravel-opcache-clear

You must also install this service provider.

// config/app.php
'providers' => [
    ...
    ABENEVAUT\Opcache\Clear\App\Providers\OpcacheClearServiceProvider::class,
    ...
];

You must make sure that you've setted the right application url into config/app.php

// config/app.php
 'url' => env('APP_URL', 'http://my-app-url'),

Usage

Once you have installed the package, you can run the following command:

php artisan opcache:clear

All done! Your OPcache is resetted!

Suggestion

Run this command during deployment process in order to automate the cleaning process before you app become active!

Credits to main author

Original package : michelecurletta/laravel-opcache-clear

统计信息

  • 总下载量: 3.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3
  • 更新时间: 2017-02-05