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..
Hey guys, I have an issue with themes. I have the header-organism in two different themes nameIt and
Hey guys,
I have an issue with themes.
I have the header-organism in two different themes nameIt and default.
the nameIt theme is should be only used by the store nameIt, I configured it like here: https://github.com/spryker-academy/frontend-forbackenddev-course/commit/aad14c5be83aa3cf1ae1deb9f7ec82ac3094042a#
Unfortunately for example when choosing which header-organism to choose the first call is correct an then it gets cached. So a sub sequential call to a page for the other store is using the cached header.
I don't think that is how it is supposed to work?
Comments
-
How did you configure twig cache dir?
\Spryker\Shared\Twig\TwigConfig::getDefaultPathCache
0 -
thanks @UL65CH0MC
I did not change anything here:public function getDefaultPathCache($application = APPLICATION): string { return sprintf( '%s/src/Generated/%s/Twig/codeBucket/.pathCache', APPLICATION_ROOT_DIR, ucfirst(strtolower($application)), ); }
Do I need to separate this here?
0 -
I don't know because i don't have a case similar yours... But I think u have to investigate if the problem is the twig cache path...
I understand so that for all store is the same path Cache... and if is so then it is clear why the sub-sequent request on other store get the wrong header cached0 -
Thank you!
indeed that seems to solve the problem. Both shops were using the same pathCache.0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 78 Spryker News
- 936 Developer Corner
- 793 Spryker Development
- 90 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 27 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random