Search code examples
shopware6shopware6-api

Caching data returned from Shopware6 API's


To avoid recurring DB calls for data that could be cached im looking for a method to cache returned data in shopware 6. Does shopware already provide a cache or do we have to use symfony cache extension towards a redis or the likes?

Kr Ole

Searched the shopware documentation without finding a good answer


Solution

  • Shopware comes with different layers of caching out of the box, you can find information on how to activate them and how you can configure them in the official docs.

    Keep in mind that most of the caches are optimized for the Store-API/Storefront, so in general requests to the Admin-API are not cached.