I found the this "ProductTagService" use the static cache. This is the code:
//use static cache (between HTTP requests)
builder.RegisterType<ProductTagService>().As<IProductTagService>()
.WithParameter(ResolvedParameter.ForNamed<ICacheManager>("nop_cache_static"))
.InstancePerLifetimeScope();
when insert,update or delete a product tag,it will execute the entityinsert,entityupdate or entitydelete event.
And i haven't found such as IConsumer<EntityInserted<ProductTag>> , so i think in ProductTagService class,when insert a product tag,it doesn't execute the "_eventPublisher.EntityInserted(productTag);",and just execute the "_cacheManager.RemoveByPattern(PRODUCTTAG_PATTERN_KEY);". I hope someone can help me ,thank you.