Les modifications d'index ne sont pas reflétées dans la vitrine après le processus push-to-live Elasticsearch
Dans la version 9.1.4.0 uniquement, vous devez vous assurer que l'invalidation WCT+ESINDEX est déclenchée après une opération push-to-live. Cela garantit que les modifications d'index sont reflétées dans le magasin actif.
Problème
HCL CommerceAprès une opération push-to-live, les modifications apportées aux données de catalogue ne sont pas disponibles dans les magasins actifs, car il n'y a pas eu d'invalidation du cache correspondante.
Solution
Pour propager les modifications d'index dans un magasin actif, déclenchez l'invalidation WCT+ESINDEX dans les caches suivants :
services/cache/SearchSystemDistributedMapCache
services/cache/SearchDistributedMapCache
services/cache/SearchFacetDistributedMapCache
services/cache/SearchCatHierarchyDistributedMapCache
services/cache/SearchQueryDistributedMapCache
baseCacheVous pouvez invalider les caches à l'aide de l'une des deux méthodes. Vous pouvez utiliser le gestionnaire de cache version 9.1.4 en émettant les commandes REST suivantes :
curl -X DELETE "https://{cachemanager_host}/cm/cache/invalidate?cache=services%2Fcache%2FSearchSystemDistributedMapCache&id=WCT%2BESINDEX" -H "accept: /"
curl -X DELETE "https://{cachemanager_host}/cm/cache/invalidate?cache=services%2Fcache%2FSearchDistributedMapCache&id=WCT%2BESINDEX" -H "accept: /"
curl -X DELETE "https://{cachemanager_host}/cm/cache/invalidate?cache=services%2Fcache%2FSearchFacetDistributedMapCache&id=WCT%2BESINDEX" -H "accept: /"
curl -X DELETE "https://{cachemanager_host}/cm/cache/invalidate?cache=services%2Fcache%2FSearchCatHierarchyDistributedMapCache&id=WCT%2BESINDEX" -H "accept: /"
curl -X DELETE "https://{cachemanager_host}/cm/cache/invalidate?cache=services%2Fcache%2FSearchQueryDistributedMapCache&id=WCT%2BESINDEX" -H "accept: /"
curl -X DELETE "https://{cachemanager_host}/cm/cache/invalidate?cache=baseCache&id=WCT%2BESINDEX" -H "accept: /" Pour plus d'informations, voir HCL Cache.Vous pouvez également invalider à l'aide du tableau CACHEIVL. L'activation de cette méthode peut prendre jusqu'à quatre minutes :
insert into cacheivl (template, dataid) values ('dmap:services/cache/SearchSystemDistributedMapCache','WCT+ESINDEX')
insert into cacheivl (template, dataid) values ('dmap:services/cache/SearchDistributedMapCache', 'WCT+ESINDEX')
insert into cacheivl (template, dataid) values ('dmap:services/cache/SearchFacetDistributedMapCache','WCT+ESINDEX')
insert into cacheivl (template, dataid) values ('dmap:services/cache/SearchCatHierarchyDistributedMapCache','WCT+ESINDEX')
insert into cacheivl (template, dataid) values ('dmap:services/cache/SearchQueryDistributedMapCache','WCT+ESINDEX')
insert into cacheivl (dataid) values ('WCT+ESINDEX')