Każde ustawienie pod Settings → Speed Boost mapuje do klucza Shopware system_config pod namespace’em P2LabCache.config.<name>. Możesz je nadpisywać w config/services.yaml, przez UI admin, lub przez API System Config .
Klucz Typ Default Notatki activebool trueMaster cache toggle cacheModeenum basicbasic / advanced — preset dashboarduserverTtlint 86400Server-side TTL, sekundy cacheControlDirectiveMaxAgeint 0Cache-Control: max-age=…cacheControlDirectiveSMaxAgeint 21600Cache-Control: s-maxage=…cdnCacheControlMaxAgeint 0CDN-Cache-Control: max-age=… (Cloudflare / Fastly / Akamai)listingLoadModeenum skeletonskeleton / backgroundlistingBackgroundReplacementenum nonenone / fadecacheHomePagebool trueCache frontend.home.page cacheNavigationPagesbool trueCache frontend.navigation.page cacheNavigationAjaxPagebool trueCache frontend.navigation.page.ajax cacheNavigationAjaxFilterbool trueCache frontend.navigation.filter cacheProductPagesbool trueCache frontend.detail.page cacheCmsPagesbool trueCache frontend.cms.page cacheAsyncBuyboxbool falseCache odpowiedzi async-buybox ignoredQueryParamsstring[] (wbudowana lista) Usuwane z klucza cache
Klucz Typ Default Notatki invalidationModeenum smartmanual / request (Basic) / extended / precise / smartenableInvalidationLogbool falseZapisuje każde zdarzenie inwalidacji debugModebool falseDodaje nagłówki X-P2Lab-Cache-* cacheAdapterenum filesystemfilesystem / redis / apcuredisDsnstring ''np. redis://localhost:6379 cacheNamespacestring p2lab_cachePrefiks klucza backendu enableCompressionbool truegzip zapisanego payloadu compressionLevelint 61 / 3 / 6 / 9
Klucz Typ Default Notatki enableVarnishCachebool trueWysyła xkey purge do Varnisha xkeyInvalidationStrategyenum smartdefault / precise / smartsplitXkeybool falseDziel długi xkey na wiele nagłówków shortenXkeyTagsbool falseMD5-hashuj długie nazwy tagów enableReverseProxyLogbool falseZapisuje każdy xkey purge xkeyTagBlockliststring[] []Kategorie wykluczone z xkey purge
Wartość Wyklucza tagi pasujące themetheme.*translatortranslator.*configconfig.*, system-config-*route*-route-*snippetsnippet-*rulerule-*mediamedia-*property_groupproperty-group-*manufacturermanufacturer-*sales_channelsales-channel-*product_stockp2c-product-stock_*
$this-> systemConfigService -> set (
' P2LabCache.config.invalidationMode ' ,
$salesChannelId // null dla globalnego
Każdy klucz wspiera nadpisanie per kanał sprzedaży. Z panelu admin użyj przełącznika kanału sprzedaży w headerze i przełącz “Override”. Z API przekaż ID kanału sprzedaży jako trzeci argument do systemConfigService->set().