定制 steve-moretz/laravel-opcache 二次开发

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

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

steve-moretz/laravel-opcache

Composer 安装命令:

composer require steve-moretz/laravel-opcache

包简介

This package allows you to clear OPcache from CLI.

README 文档

README

This Laravel 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 allow you to install the package into an existing Laravel app.

Installation

You can install this package via Composer using:

composer require steve-moretz/laravel-opcache

Config Website Url

php artisan vendor:publish --provider="SteveMoretz\LaravelOpcacheClear\OpcacheClearServiceProvider"

Now you can go ahead and change the website url if necessary.

Usage

Clear

php artisan opcache:clear

Watch Invalidate Cache

  1. First you need to install
yarn add chokidar
  1. Now can goto config/opcache.php and set watch_globs to list of directories and files you want to watch.

eg :

    "watch_globs" => [__DIR__ . "/../../**/*.php"]
  1. Now you can run
php artisan opcache:watch

Suggestion

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固