magesuite / theme-creativeshop

Open Software License 3.0
38 stars 24 forks source link

Customers created in database by page-cache-warmer module #96

Closed ggm-dev closed 2 years ago

ggm-dev commented 2 years ago

Can anyone explain why this exists in the page cache warming module?

https://github.com/magesuite/page-cache-warmer/blob/1.x/Service/CustomerCreator.php

diwipl commented 2 years ago

It's there to warm up pages for specific customer groups since varnish cache is dependant on x-magento-vary cookie that contains customer group.

The easiest way to do it is to create fake accounts with specific customer group, log into them and warmup pages while being logged in.

ggm-dev commented 2 years ago

Thanks for super quick response! I'll worry no more.

Cheers - David