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..
If you use the Twig function `{{ product(['sku1', 'sku2']) }}` in your CMS page I guess the resultin
If you use the Twig function {{ product(['sku1', 'sku2']) }}
in your CMS page I guess the resulting HTML will be added to the page and the whole thing goes into the redis cache. But this means the cach has to be invalidated if the product data changes. I can't find any cache tags mechanism. So how will spryker know what to invalidate if the product changes?
Comments
-
thereβs no βcacheβ in spryker to my awareness
0 -
data from rdbms (typically postgres) is normalized to a readfriendly format and then stored in redis
0 -
but nothing to flush out or so, data is persistent there
0 -
Oh okay π So the twig runs on every call it seems and the data is always valid.
0 -
so though I am not too familiar with the cms pieces, I assume that skus are resolved and product data fetched from redis on each request
0 -
No now that you say it I believe you are right π
0 -
Different concept as I remembered.
0 -
did you have issues with stale product data though? or why are you asking around this?
0 -
I just wondered how the data will be kept current. We where discussing it today but my co workers weren't so deep into Spryker. So I better asked.
0 -
ah ok
0 -
true. should not happen with sprykerβs approach. if data is properly synced to redis π
0 -
That is for sure π We are heavily relying on that concept.
0 -
out of curiosity may I ask which kind of data is maintained in sulu?
0 -
All the CMS data. So in our case news, contacts and locations
0 -
https://beta.w-f.ch/de/wf/filiale-st-gallen All this comes from sulu. Data and images. Into Zed to Yves to Vue and that renders the content.
0 -
ah ok. no product related data then. but within that content, you want to display products then?
0 -
Yes that is the next step. My plan is just to use a twig function. So sulu queries the standard search already implemented. So the content managers can find one or more products. Then sulu saves the SKU. This SKU is put in a twig tag that then probably Yves and not Zed will interpret.
0 -
π
0 -
And we want to add content to products later as well. Basically a sulu snippet can hold all data and point to one or more SKU or a category. Then if that is called maybe again a twig function asks sulu for data and some how caches that.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 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
- 26 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
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random