Zum Inhalt springen
Core Web Vitals specialists
Shopware CEElasticsearchHTTP CacheTheme Tuning

Shopware Performance at the Next Level

Slow category listings, sluggish product pages and a stuttering checkout cost you revenue. We optimize your Shopware Community Edition at every layer: Elasticsearch, cache tiers, theme compilation, plugin performance and storefront rendering.

1.1s

average load time after Shopware optimization (project experience)

50+

optimized Shopware shops

85%

faster search responses with Elasticsearch

95%

cache hit rate after configuration

Shopware Community Edition is a powerful shop system that does not exhaust its performance potential without targeted optimization. Standard installations deliver category pages in 2 to 5 seconds, search queries take noticeably long with larger catalogs, and theme compilation slows down the development process. We know the performance levers of Shopware's architecture in detail and optimize your shop for fast load times, high stability and excellent Core Web Vitals. Combined with server optimization and frontend tuning, we achieve load times that delight your customers.

Understanding and Optimizing Shopware Cache Layers

Shopware employs a multi-tier caching system that drastically reduces response times when properly configured. In practice, however, cache settings in many shops are suboptimally configured: the HTTP cache is disabled, the object cache uses the slow filesystem instead of Redis, and cache invalidation is too aggressive. We analyze each cache layer and configure it for maximum hit rate while maintaining data consistency.

HTTP Cache (Reverse Proxy)

Shopware's integrated HTTP cache stores pre-rendered HTML pages and serves them without PHP execution. We configure cache headers, vary rules and invalidation via cache tags so that price and inventory changes become visible immediately without flushing the entire cache.

Object Cache (Redis/Memcached)

The object cache stores computed data like navigation structures, sidebar content and configurable product data. We migrate the object cache from the filesystem to Redis, which accelerates cache access by a factor of 10 to 50 and drastically reduces disk I/O.

App Cache (Configuration)

Shopware caches configuration data, plugin settings and translations in the app cache. We ensure the app cache is properly built and not invalidated on every request. A clean cache configuration eliminates redundant database queries during page rendering.

The right combination and configuration of these cache layers is critical. In our Shopware optimization projects, we typically achieve an HTTP cache hit rate exceeding 90 percent for anonymous visitors and an object cache hit rate above 95 percent (project experience). This means the vast majority of page views are answered directly from cache without Shopware needing to recalculate the page.

Shopware CE uses Elasticsearch for product search, category listings and facet filters. A standard installation delivers usable results but leaves significant performance potential untapped. For shops with over 10,000 products, the difference becomes especially clear: search queries without Elasticsearch optimization take 500 to 2,000 milliseconds; with optimized configuration, response times drop to 20 to 80 milliseconds.

Optimizing Theme Compilation

Shopware's theme system compiles SCSS to CSS, bundles JavaScript and generates thumbnails. In the default configuration, theme compilation can take 30 seconds to several minutes. This slows down the development process and extends deployment times. We optimize theme compilation on multiple levels.

  • SCSS Optimization: Reduction of nested selectors, elimination of unused mixins and variables, splitting into modular partials for selective compilation. The resulting CSS file typically becomes 30 to 50 percent smaller
  • JavaScript Bundling: Analysis and optimization of JavaScript registrations in the theme. Removal of unused plugin scripts, lazy loading for components outside the visible area and code splitting for page-specific functions
  • Thumbnail Generation: Shopware generates thumbnails for product images in multiple sizes. We configure thumbnail sizes to match the breakpoints actually used in the theme and eliminate unnecessary variants. Additionally, we implement WebP conversion for all generated thumbnails
  • Incremental Builds: Instead of recompiling the entire theme on every change, we implement incremental builds that process only modified files. This reduces compilation time during development to a few seconds
  • Asset Caching in Build: Compiled assets receive content hashes in their filenames, enabling long-term browser caching. When assets change, the hash changes and the browser automatically loads the new version

Plugin Performance Audit

Plugins are the most common cause of performance issues in Shopware shops. Each plugin can bring event subscribers, additional database queries, frontend assets and template extensions. A shop with 30 to 50 active plugins typically has 200 to 500 additional database queries per page load and 300 to 800 kilobytes of additional JavaScript. We conduct systematic plugin audits and identify the plugins with the highest performance impact.

Per-Plugin Profiling

We measure the impact of each active plugin on server response time, number of database queries and frontend asset size. Plugins are sorted by performance impact to address the biggest bottlenecks first.

Plugin Optimization

For performance-critical plugins, we analyze the source code and implement optimizations: inefficient queries are replaced with indexed queries, unnecessary event subscribers are disabled, and frontend assets are loaded via lazy loading.

Plugin Consolidation

Multiple plugins often provide overlapping functionality. We identify redundancies and consolidate: a custom plugin replaces three to five individual plugins with the same functionality at a fraction of the overhead.

Optimizing Storefront Rendering

The storefront is the layer where Shopware converts data from database and cache into HTML. Twig templates, subscribers, decorators and event systems offer great flexibility but can significantly extend rendering time when used improperly. We optimize the storefront rendering pipeline for fast page delivery.

Accelerating Category and Listing Pages

Category listings are the most visited and simultaneously most performance-critical pages in an online shop. Each listing page must load product data, calculate prices, deliver images and provide filter options. For categories with thousands of products and dozens of filter attributes, processing without optimization can take several seconds.

Elasticsearch for Listings

Instead of database queries, optimized shops use Elasticsearch for category listing. Elasticsearch calculates filter options (facets), sorting and pagination in a single request with response times under 50 milliseconds, even for categories with over 50,000 products.

Lazy Loading for Product Images

Only images in the visible area are loaded immediately. Additional product images load via Intersection Observer as the user scrolls. Combined with WebP/AVIF formats and responsive image sizes, this reduces transferred data per listing by 60 to 80 percent.

Ajax Filters Without Page Reload

Filter changes reload only the product area via Ajax, not the entire page. This shortens perceived filter time to under 300 milliseconds and eliminates the jarring flicker of full page reloads.

Pagination and Infinite Scroll

Classic pagination with configurable page size or infinite scroll with virtualized rendering. We choose the variant that best fits your product structure and user expectations and optimize load time on every page transition.

Optimizing Product Detail Pages

The product detail page is the page with the highest purchase probability. Slow load times on this page directly cost revenue. Shopware loads master data, variants, prices, cross-selling recommendations, reviews and media assets on the product detail page. Each of these data sources is a potential performance bottleneck.

  • Variant Loading Time: For products with hundreds of variants (color, size, material), variant calculation can slow down the page. We implement deferred loading of variant information and calculate only the currently selected combination server-side
  • Cross-Selling via Ajax: Recommendation blocks ('Customers also bought', 'Similar products') are loaded asynchronously so they do not delay the initial page load. The main product information appears instantly
  • Image Gallery Performance: The product image gallery uses lazy loading for gallery images starting from the second image. The main image receives fetchpriority="high" and is delivered in the optimal format (AVIF/WebP) at the viewport-appropriate size
  • Review Pagination: For products with hundreds of reviews, we initially load only the first five to ten reviews and offer a 'Load more' function. This significantly reduces HTML size and rendering time
  • Structured Data Optimization: JSON-LD for product data is generated server-side and placed in the head. We ensure structured data is complete and correct without impacting page rendering
  • Price Calculation Caching: Customer-group-specific prices are served via the object cache. Redis-based price resolution delivers results in under 5 milliseconds instead of the typical 50 to 200 milliseconds from the database

Improving Checkout Speed

The checkout is the most revenue-critical phase of the purchase process. Every additional second of load time in the checkout increases the abandonment rate. According to a study by the Baymard Institute, 17 percent of users abandon purchases because the checkout process is too long or complicated (Baymard Institute, 2024). We optimize the Shopware checkout for maximum speed while maintaining full functionality.

Cart Calculation

Recalculation of prices, discounts and shipping costs on every cart change is replaced by incremental calculation. Only changed items are recalculated; the rest is read from cache.

Payment Method Loading

Payment provider SDKs often load external scripts of 200 to 500 kilobytes. We load these scripts only in the payment step and use the facade pattern with lightweight placeholders until actual selection.

Shipping Cost Calculation

For complex shipping rules with weight and size-dependent tiers, we cache results per cart configuration. Repeated calculations for identical cart contents are answered from cache.

Shopware Admin Performance

The administration is the daily working environment for shop operators and content managers. A slow backend slows down all business processes: product maintenance, order processing, reporting and configuration. We also optimize the Shopware admin interface for efficient workflows.

  • Product List Performance: The product overview in the admin is accelerated through optimized database queries and Elasticsearch-based search. Filtering and sorting large product catalogs completes in under 500 milliseconds instead of several seconds
  • Media Manager Optimization: The media manager is accelerated through lazy loading of preview images and paginated display. Large media libraries with thousands of assets no longer load all thumbnails at once
  • Batch Operations: Mass changes to product data, prices and inventory are processed asynchronously via the message queue. The admin remains responsive during long import or update operations
  • Admin API Caching: Frequently queried admin API endpoints like navigation structure, configuration and permissions are cached. This significantly reduces the number of database queries per admin page load

Shopware CLI Tools for Performance Analysis

Shopware offers powerful CLI tools that enable performance analysis and optimization directly on the server. We use these tools systematically in our optimization work and configure them for regular use in maintenance.

bin/console cache:clear

Targeted cache management: Shopware's cache commands enable selective invalidation of individual cache layers. We configure deployment scripts that flush only necessary caches after each release and start a warming sequence.

bin/console dal:validate

Validation of the Data Abstraction Layer configuration identifies missing indices, invalid associations and performance problems in the data layer. We run this validation in the CI/CD pipeline to catch regressions early.

bin/console es:index

Elasticsearch index management: reindexing, alias management and index cleanup. We configure incremental indexing via message queue for timely updates and schedule full reindexing during off-peak hours.

Before and After: Typical Shopware Optimization Results

The following values show typical improvements from our Shopware CE optimization projects. Our reference projects document the results. Actual outcomes depend on the size of the product catalog, the number of active plugins and the existing infrastructure (project experience).

MetricBefore OptimizationAfter Optimization
Category listing (TTFB)1,200 - 4,500 ms80 - 250 ms
Product search (10,000+ items)800 - 3,000 ms30 - 100 ms
Product detail page (LCP)3.0 - 6.5 s0.8 - 1.8 s
Checkout steps1,500 - 3,500 ms300 - 800 ms
Database queries per request150 - 40020 - 60
Theme compilation time45 - 180 s5 - 15 s
PageSpeed Insights Score (mobile)20 - 4585 - 100

The Shopware Optimization Process

Regular Performance Checks for Your Shopware Shop

Plugin updates, new products and seasonal traffic spikes can change performance at any time. We recommend quarterly performance checks that verify cache hit rates, Elasticsearch response times and Core Web Vitals. This way you detect regressions early and maintain achieved performance permanently.

Frequently Asked Questions About Shopware Performance