承接 webfixit/cachehostsmanager 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

webfixit/cachehostsmanager

Composer 安装命令:

composer require webfixit/cachehostsmanager

包简介

Allows the purge/clear/flush of the PHP OpCache via the CLI and Magento2 Backend

README 文档

README

Allows to manage your cache hosts via the CLI. You can add for instance Varnish servers and remove them again in the configuration.

Status

I believe this package is stable. Yet I want to warn you about using it in production:

  • It has not been used intensively by the community
  • Magento core changes often - I cannot guarenty this package will work on the next update.
  • Make sure you have the correct backups of your configurations.

When you are in need of a tool like this, I assume you have somewhat decent knowledge the make the right calls ;)

Why

Because the default CLI setting (config:set --http-cache-hosts) is not usefull. The config:set commands overrides all your hosts. Imagine a dynamic setup where you add a new server. The configuration (env.php) is shared via a NFS (or whatever volume). You must know all hosts if you want to add your new host.

With this manager you can simply do bin/magento cachehosts:add {currenthost} and it will append the server, rather than overriding all your servers

About me

I'm a DevOps engineer for a full service digital agency in the Netherlands. When possible I try to create opensource scripts / extentions and tools. If you appriciate my work, please be so kind to donate so I can keep drinking beer.

paypal

How the CLI works

There are 2 commands:

bin/magento cachehosts:add

bin/magento cachehosts:remove

Arguments are the host(s), comma seperated

CLI Usage

Add

// Using default port
bin/magento cachehosts:add 127.0.0.1
// Adding multiple hosts
bin/magento cachehosts:add 127.0.0.1,127.0.0.2
// Adding with port
bin/magento cachehosts:add 127.0.0.1:1337

Remove

// Using default port
bin/magento cachehosts:remove 127.0.0.1
// Removing multiple hosts
bin/magento cachehosts:remove 127.0.0.1,127.0.0.2
// Removing with port
bin/magento cachehosts:remove 127.0.0.1:1337

Mixing up

bin/magento cachehosts:remove 127.0.0.1:1337,127.0.0.1

It is ok to have the same host on different ports.

Install with Composer

composer require webfixit/cachehostsmanager

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2018-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固