承接 taurus-media/module-varnish-config 相关项目开发

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

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

taurus-media/module-varnish-config

Composer 安装命令:

composer require taurus-media/module-varnish-config

包简介

Magento 2 module that automatically downloads a VCL template and applies Varnish configuration via cron

README 文档

README

A Magento 2 module that automatically keeps your Varnish configuration up to date by downloading a remote VCL template, processing it with Magento's native placeholder substitution, and applying it to the running Varnish instance.

How it works

  1. A cron job runs once a day
  2. The VCL template is downloaded from a configured URL
  3. Magento's built-in VclGenerator replaces all standard placeholders with live values from the store configuration (backend host/port, access list, grace period, SSL offload header, design exceptions)
  4. The processed VCL is saved to var/tmp/varnish_extended.vcl
  5. The new configuration is loaded and activated via varnishadm:
    varnishadm vcl.load magento2 <file>
    varnishadm vcl.use magento2
    

NOTE: vcl.load and vcl.use commands are not flushing the already cached pages.

Requirements

  • Magento 2 with Magento_PageCache module
  • PHP 8.1+
  • varnishadm available in the system PATH of the user running Magento cron

Installation

composer require taurus-media/module-varnish-config
bin/magento module:enable Taurus_VarnishConfig
bin/magento setup:upgrade

CLI command

The VCL update can also be triggered manually:

bin/magento taurus:varnish:update-vcl

This runs the same logic as the cron job and exits with code 0 on success or 1 on failure, making it suitable for use in deployment pipelines.

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固