承接 swag/disable-store-api-cache 相关项目开发

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

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

swag/disable-store-api-cache

Composer 安装命令:

composer require swag/disable-store-api-cache

包简介

Disables the store-api object cache layer, which is redundant when an HTTP cache (reverse proxy / Symfony HTTP cache) is in front.

README 文档

README

Disables the store-api object cache layer in Shopware 6.6.

Why

Many store-api routes have a cache decorator — e.g. CachedProductDetailRoute wraps ProductDetailRoute and stores responses in the cache.object pool. This plugin disables the content routes whose payloads are heavy and fully covered by an HTTP cache:

  • the product routes (detail, listing, search, suggest, review, cross-selling),
  • navigation and category,
  • landing page, and
  • sitemap.

The lightweight system/checkout routes (language, country, currency, salutation, payment, shipping) are intentionally left cached.

When an HTTP cache (reverse proxy such as Varnish/Fastly, or the Symfony HTTP cache) sits in front of the shop, store-api responses are already cached at the HTTP layer. The object cache underneath then only adds:

  • serialization / compression overhead on every request,
  • an extra cache roundtrip, and
  • a second invalidation surface that has to be kept in sync.

This plugin removes that redundant layer so the original, undecorated routes are used directly.

Installation

composer require swag/disable-store-api-cache
bin/console plugin:refresh
bin/console plugin:install --activate SwagDisableStoreAPICache
bin/console cache:clear

Verify the decorators are gone:

bin/console debug:container CachedProductDetailRoute   # should report "not found"

Compatibility

  • Requires Shopware 6.6 (shopware/core: ~6.6.0).
  • Not needed on Shopware 6.7+. These Cached*Route decorators are deprecated in 6.6 (@deprecated tag:v6.7.0 - reason:decoration-will-be-removed) and have been removed entirely in 6.7 as part of the cache rework — there is no store-api object cache layer to disable there. Do not install this plugin on 6.7 or later.

License

MIT — see LICENSE.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固