Guys, I’m wondering which duration is the best for SSR CACHE ?
Furthermore, multi-lingual websites are based on dynamic pages?
Thank you in advance!
Guys, I’m wondering which duration is the best for SSR CACHE ?
Furthermore, multi-lingual websites are based on dynamic pages?
Thank you in advance!
In general, the longer the better. A longer duration increases the likelihood of sessions to be served from the cache. For example, say you’ve set cache duration to 1 hour, and you get 10 visitors an hour. In that case, during a 2 hour duration, 2 visitors won’t get cached content, and 18 will. As a result, these 2 visitors will experience slower page load-time. OTOH if you set the cache duration to 2 hours then only 1 will get non-cached response, and 19 will be served by cache.
The downside of a longer cache duration is that content can become mare stale. For example, if the page uses Wix Code on the server-side to get the weather and display it in the page, a cache duration of 1 hour will cause weather to be up to 1 hour out-of-date. If cache duration is 2 hours, then it can be 2 hours out-of-date.
Yeah - we don’t really recommend SSR cache with Code sites for right now. That of course will come later. =)
Thank you guys. Actually my website doens’t use wix code. I just don’t know if Wix Multilingual is compatible with SSR? On what is based Wix Multilingual? Dynamic pages? Wix Code?
If I decide to implement multilingual in my website, I can still use SSR without any problem?
That’s a great response, actually. Multilingual is compatible with SSR. Dynamic pages that are Wix Code driven are not as effective with SSR cache.
@brett-haralson perfect. Thank you guys for your fast response and help.