The cache warmer plug-in allows cache warming for repository implementations.
To activate the default cache warmers (actually only one for the EAV attribute option value repository exists), add the following configuration either to the replace
and the add-update
configuration (no difference for the EE).
{
...
{
"name" : "replace",
"plugins" : [
{
"id": "import.plugin.cache.warmer"
},
...
]
}
}
To register additional custom cache warmers, the symfony DI ID can be specified as parameter like
{
...
{
"name" : "replace",
"plugins" : [
{
"id": "import.plugin.cache.warmer",
"params" : [
{
"cache-warmers" : [
"id.of.your.cache.warmer"
]
},
...
]
}
}