sitegeist/zombiehunt
Composer 安装命令:
composer require sitegeist/zombiehunt
包简介
Find undead (hidden and long untouched) content and help killing it for good
README 文档
README
Find and destroy undead contents
Often times editors will only hide obsolete content and never actually delete it. Over time this leads to hidden content that is so old no one remembers who wrote it, why and whether it can finally be removed ... we call this ZOMBIE content.
This package visualizes zombie contents to the editors and allows to automatically destroy contents that have been zombies for a while. Of course the time period for hidden contents to turn into a zombie is configurable as well as the period for zombie destruction.
Authors & Sponsors
- Martin Ficzel - ficzel@sitegeist.de
The development and the public-releases of this package is generously sponsored by our employer https://www.sitegeist.de.
Settings
The zombification- and destruction period can be defined via settings. By default, hidden contents that have not been touched for a year will turn to zombie content and are due to destruction after another year.
Sitegeist: ZombieHunt: # hidden nodes turn into zombies after this period zombificationPeriod: 31536000 # zombie-nodes start are due to destruction after this period destructionPeriod: 31536000 # the label for zombie-nodes zombieLabel: '🧟' # label for zombie-nodes that are due to destruction zombieToDestroyLabel: '🔥🧟🔥'
Neos Backend
In the document tree and content structure zombie nodes are marked with "🧟" respectively "🔥🧟🔥" for zombie contents that are due to destruction. In addition, zombie contents are marked in the backend rendering in the content tree and the content area.
Cli Commands
The following commands allow to find and destroy zombies.
./flow zombie:detect
Detect zombies in the given site. Will return an error code if zombie contents that is due to destruction is detected.
USAGE: ./flow zombie:detect [<options>] OPTIONS: --site-node node-name of the site to scan, if not defined all sites are used --dimension-values json of the dimension values to use, otherwise default. Example '{"language":["de"]}'
./flow zombie:destroy
Remove zombie contents that are due to destruction
USAGE: ./flow zombie:destroy [<options>] OPTIONS: --site-node node-name of the site to scan, if not defined all sites are used --dimension-values json of the dimension values to use, otherwise default. Example '{"language":["de"]}' --dry-run option to output list of nodes to be deleted without actually deleting them
Installation
Sitegeist.ZombieHunt is available via packagist. Just run composer require sitegeist/zombiehunt to install it. We use semantic versioning so every breaking change will increase the major version number.
Contribution
We will gladly accept contributions. Please send us pull requests.
sitegeist/zombiehunt 适用场景与选型建议
sitegeist/zombiehunt 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.11k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2024 年 04 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sitegeist/zombiehunt 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sitegeist/zombiehunt 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 10.11k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-04-19