Shopware HTTP Cache Debugging and Context

Version 5.26.0 of the PHP Extension contains instrumentation for the Shopware HTTP Cache that allow debugging the context information.

This is available when clicking on the „shopware“ span of a trace in the Timeline or Flamegraph and now contains the following annotations:

  • shopware.http_cache.key: The unique name of the cache entry for this page and context information. This is visibile on both cached and uncached pages.
  • shopware.http_cache.tags: The tags that the cache key is associated with. If one of these cache tags is purged by Shopware then the cache entry of this page is purged as well.
  • shopware.http_cache.context_cookie: The contents of the Cache Context Cookie, meaning all the relevant context information that go into the generation of the cache key. Especially of note here is the list of rule ids (capped at 10 at the moment) that can give insights on which rules influence the cache.

About the author

  • Benjamin

Benjamin
Founder & CEO

I am the founder and CEO of Tideways. I started the company over 10 years ago with the mission to move the PHP ecosystem forward, starting with performance. As managing director, I work across product, strategy, and the day-to-day of building a developer-focused SaaS business.

I’m a core contributor to the Doctrine open-source project and a founding board member of the PHP Foundation, which reflects my long-standing commitment to the PHP ecosystem. I particularly enjoy working at the intersection of application performance, developer experience, and the open-source community that makes PHP what it is. Outside of work, I enjoy board games, hiking, and coffee.