定制 shopware/fastly-meta 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

shopware/fastly-meta

最新稳定版本:6.7.0

Composer 安装命令:

composer require shopware/fastly-meta

包简介

A meta package providing recipes for Fastly

README 文档

README

A Composer meta package that streamlines the integration of Fastly as the CDN layer for Shopware. It automates the deployment and management of Fastly VCL (Varnish Configuration Language) snippets and ensures best-practice Shopware CDN cache handling in scalable, modern shop setups.

  • Performance: Fastly caches HTTP responses at edge locations closest to your customers, reducing latency and load on your servers.
  • Resource Savings: Cache hits at the edge reduce backend requests and lower cloud infrastructure demands.
  • Modern Caching: Fastly replaces local Redis cache use for HTTP caching, resulting in more scalable and reliable storefront performance.

This is not an official Fastly project but a Shopware-specific implementation.

Install

composer require shopware/fastly-meta

Setup

  1. Set required environment variables:

    • FASTLY_API_KEY — Your Fastly API key
    • FASTLY_SERVICE_ID — The Fastly Service ID
  2. Integrate with your deployment process:

  3. Enable Fastly for your Shopware project:

    • Push your updated code and configuration containing the meta package and Fastly env variables to your environment.
    • Fastly CDN will be integrated for HTTP caching.

Usage

Once set up, VCL snippets are managed automatically during your deployment process. You can manage Fastly snippets manually with Deployment Helper CLI commands:

# List deployed VCL snippets
./vendor/bin/shopware-deployment-helper fastly:snippet:list

# Remove a VCL snippet by name
./vendor/bin/shopware-deployment-helper fastly:snippet:remove 

Related Documentation

More info is available at Shopware Fastly Integration Guide, Shopware Deployment Helper, and Shopware PaaS Fastly Setup.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-26