承接 peachcode/module-fpcwarmer 相关项目开发

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

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

peachcode/module-fpcwarmer

最新稳定版本:1.0.0

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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固