jaxwilko/wn-opcachepreload-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jaxwilko/wn-opcachepreload-plugin

最新稳定版本:v0.0.1

Composer 安装命令:

composer require jaxwilko/wn-opcachepreload-plugin

包简介

Winter CMS support for opcache preloading

关键字:

README 文档

README

Preloading allows you to read php files into memory at server startup which helps boost performance. The tradeoff for this is that you will need to restart your webserver when you make a change to one of the cached php files.

Official preloading php docs.

Please note that preloading is not supported on Windows.

Installation

Install the plugin:

composer require jaxwilko/wn-opcachepreload-plugin

Configure opcache settings in your php.ini:

[opcache]
opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=20000
opcache.validate_timestamps=0 
opcache.revalidate_freq=0
opcache.preload=/path/to/winter/plugins/jaxwilko/opcachepreload/preload.php
opcache.preload_user=apache

Change /path/to/winter to whatever is right for your setup

Change apache in preload_user to whatever the right user is for you

Usage

Reboot your webserver (nginx / php-fpm / apache).

Misc

The preload script supports some options for testing.

OPTIONS
-h, --help      show this screen
-d, --dry       perform a dry run
-v, --verbose   output info
-e, --errors    output errors

Disclaimer

This plugin works well for me in my production setups but that does not necessarily mean it will work for you, please test thoroughly before using in production.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固