peachcode/module-fpcwarmer
Composer 安装命令:
composer require peachcode/module-fpcwarmer
包简介
Full Page Cache Warmer
README 文档
README
Overview
The PeachCode FPCWarmer module is designed for Magento 2 to generate a queue of URLs and warm the cache for faster page loads. The module interacts with a database to manage URL entries, generate a queue, and initiate the cache warming process.
Features
- Generates a queue of URLs from the sitemap files.
- Adds records to the table for further processing.
- Fetches URLs from the table and warms the cache.
- Logs the process in a custom log file.
- Can be enabled/disabled via CLI commands and cron jobs.
Installation
Step 1: Install the module via Composer
-
Add the module to your project using Composer:
composer require peachcode/module-fpcwarmer:dev-main
-
Run the setup upgrade command to enable the module:
bin/magento setup:upgrade
-
Deploy static content if in production mode:
bin/magento setup:static-content:deploy
CLI Commands
The module includes two main CLI commands for managing the queue generation and cache warming process.
Command 1: Generate Queue
Command:
bin/magento peachcode:fpcwarmer:generatequeue
This command generates a queue for warmer. It processes sitemaps, extracts the URLs, and stores them in the database for cache warming.
Command 2: Process Queue
Command:
bin/magento peachcode:fpcwarmer:processqueue
This command processes the queue of URLs and warms the cache for each entry in the queue.
Cron Jobs
To automate the queue generation and cache warming, cron jobs can be configured for both commands:
- Generate Queue Cron Job: This cron job will call the
peachcode:fpcwarmer:generatequeuecommand at scheduled intervals. - Process Queue Cron Job: This cron job will call the
peachcode:fpcwarmer:processqueuecommand to process the generated queue and warm the cache.
Logging
The module logs its activities into a custom log file located at:
/var/log/fpcwarmer.log
All important actions, such as queue generation, URL processing, and cache warming, are recorded in this file for debugging and monitoring.
Configuration
Enable/Disable Module
To enable or disable the module, you can use the following commands:
- Enable the module:
bin/magento module:enable PeachCode_FPCWarmer
- Disable the module:
bin/magento module:disable PeachCode_FPCWarmer
Customization
- The module can be customized to fit specific requirements by modifying the
QueueGeneratorandCacheGeneratoror adding new functionality.
Support
For any issues or support, please contact the module developers at doliaanatolii@gmail.com.
License
This module is licensed under the MIT License.
Magento 2.4.6
Magento 2.4.6.p1-p3
peachcode/module-fpcwarmer 适用场景与选型建议
peachcode/module-fpcwarmer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 04 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「module」 「extension」 「magento2 module」 「magento 2 module」 「magento 2 extension」 「magento2 extension」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 peachcode/module-fpcwarmer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 peachcode/module-fpcwarmer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 peachcode/module-fpcwarmer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Russian Language Pack for Magento 2
DPD Magento2 Shipping extension
A custom URL rule class for Yii 2 which allows to create translated URL rules
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-27