peachcode/module-fpcwarmer 问题修复 & 功能扩展

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

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

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

  1. Add the module to your project using Composer:

     composer require peachcode/module-fpcwarmer:dev-main
  2. Run the setup upgrade command to enable the module:

    bin/magento setup:upgrade
  3. 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:

  1. Generate Queue Cron Job: This cron job will call the peachcode:fpcwarmer:generatequeue command at scheduled intervals.
  2. Process Queue Cron Job: This cron job will call the peachcode:fpcwarmer:processqueue command 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 QueueGenerator and CacheGenerator or 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 peachcode/module-fpcwarmer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-27