Skip to content

Configuration parameters

Every setting under Settings → Speed Boost maps to a Shopware system_config key under the namespace P2LabCache.config.<name>. You can override them in config/services.yaml, through the admin UI, or via the System Config API.

KeyTypeDefaultNotes
activebooltrueMaster cache toggle
cacheModeenumbasicbasic / advanced — dashboard preset
serverTtlint86400Server-side TTL, seconds
cacheControlDirectiveMaxAgeint0Cache-Control: max-age=…
cacheControlDirectiveSMaxAgeint21600Cache-Control: s-maxage=…
cdnCacheControlMaxAgeint0CDN-Cache-Control: max-age=… (Cloudflare / Fastly / Akamai)
listingLoadModeenumskeletonskeleton / background
listingBackgroundReplacementenumnonenone / fade
cacheHomePagebooltrueCache frontend.home.page
cacheNavigationPagesbooltrueCache frontend.navigation.page
cacheNavigationAjaxPagebooltrueCache frontend.navigation.page.ajax
cacheNavigationAjaxFilterbooltrueCache frontend.navigation.filter
cacheProductPagesbooltrueCache frontend.detail.page
cacheCmsPagesbooltrueCache frontend.cms.page
cacheAsyncBuyboxboolfalseCache async-buybox response
ignoredQueryParamsstring[](built-in list)Stripped from cache key
KeyTypeDefaultNotes
invalidationModeenumsmartmanual / request (Basic) / extended / precise / smart
enableInvalidationLogboolfalseRecords every invalidation event
debugModeboolfalseAdds X-P2Lab-Cache-* headers
cacheAdapterenumfilesystemfilesystem / redis / apcu
redisDsnstring''e.g. redis://localhost:6379
cacheNamespacestringp2lab_cacheBackend key prefix
enableCompressionbooltruegzip the stored payload
compressionLevelint61 / 3 / 6 / 9
KeyTypeDefaultNotes
enableVarnishCachebooltrueSend xkey purges to Varnish
xkeyInvalidationStrategyenumsmartdefault / precise / smart
splitXkeyboolfalseSplit long xkey into multiple headers
shortenXkeyTagsboolfalseMD5-hash long tag names
enableReverseProxyLogboolfalseRecords every xkey purge
xkeyTagBlockliststring[][]Categories to exclude from xkey purges
ValueExcludes tags matching
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',
'smart',
$salesChannelId // null for global
);

Every key supports per-sales-channel override. From the admin, use the page-header sales-channel switcher and toggle “Override”. From the API, pass the sales-channel ID as the third argument to systemConfigService->set().