What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, I added 2nd store with shared persistence and same locale to our system and have one problem.

Posts: 112 🧑🏻‍🚀 - Cadet

Hello,
I added 2nd store with shared persistence and same locale to our system and have one problem. Redis for first store contains 5k+ keys and for new store it contains less than 1k keys. It doesn't contain even glossary translations, just products, cms_pages and cms_blocks, but pages don't work (404). Main navigation also isn't rendered

Welcome!

It looks like you're new here. Sign in or register to get started.

Comments

  • Posts: 194 🧑🏻‍🚀 - Cadet

    we faced similiar issue, did you set up synchronization between stores?

  • Posts: 112 🧑🏻‍🚀 - Cadet

    hmm I'm not sure. How to setup it?

  • Posts: 194 🧑🏻‍🚀 - Cadet

    me neither tbh, we are still struggling with that, but afair first step was setting common synchronization pool for stores in stores config

  • Posts: 194 🧑🏻‍🚀 - Cadet

    if you look into stores config, you will probably see something like

    $stores['somestore'] = [
            'queuePools' => [
                'synchronizationPool' => [
                    'some-connection',
                ],
            ],
    ...
    
  • Posts: 112 🧑🏻‍🚀 - Cadet

    mhmhm

  • Posts: 194 🧑🏻‍🚀 - Cadet

    and if I understand this process correctly this pool should be shared between stores you want to be synchronized

  • Posts: 112 🧑🏻‍🚀 - Cadet

    i just checked demoshop and looks like they're using 2 pools in each store (AT, DE)

     'queuePools' => [
            'synchronizationPool' => [
                'AT-connection',
                'DE-connection',
            ],
        ],
    
  • Posts: 194 🧑🏻‍🚀 - Cadet

    ok, so if both AT and DE stores have this set up then I am out of my depth here :(

  • Posts: 112 🧑🏻‍🚀 - Cadet

    hmm I added both synchronizationPools to my config and looks like it started to work 😄

  • Posts: 112 🧑🏻‍🚀 - Cadet

    not everything yet (5k+ keys in main store redis and 3k+ in new one), but it's much better now

  • Posts: 112 🧑🏻‍🚀 - Cadet

    I missed this 2 pools before..

  • Posts: 112 🧑🏻‍🚀 - Cadet

    thank you! 🙂

  • Posts: 194 🧑🏻‍🚀 - Cadet

    glad I could help

  • Posts: 112 🧑🏻‍🚀 - Cadet

    hmm one more question 🙂 Do you know if it's possible to use multi store with same domain with path prefix (similar to language)? Eg shop.com/en and shop.com/de, but not for language, but for store

  • Posts: 194 🧑🏻‍🚀 - Cadet

    no idea tbh

  • Posts: 194 🧑🏻‍🚀 - Cadet

    but if I had to guess, I'd say yes, just adjust configs, yves/zed base url amd probably also nginx config

  • Posts: 194 🧑🏻‍🚀 - Cadet

    but that's just a guess, nothing more

  • Posts: 112 🧑🏻‍🚀 - Cadet

    yeah, i'm trying to somehow configure it, but asked in the meantime, because I hoped, thatyou or someone else will just say "do it this way" ot "not possible by default" 😄

  • Posts: 112 🧑🏻‍🚀 - Cadet

    but in main channel Valerii written that it's possible. I'll write here when it'll be done

  • Posts: 112 🧑🏻‍🚀 - Cadet

    hmm we are using docker/sdk from spryker and looks like it doesn't support it yet. Probably for now we will just stay with multi domain and will see later if Spryker will show how to do it, as Valerii said

Welcome!

It looks like you're new here. Sign in or register to get started.