Привет всем
Кто-то знает, как кешировать динамические компоненты в вп? Если контент компонента зависит от пользователя на сайте
Если использовать обычный кеш, то страница будет отдаваться для всех одна с одинаковым содержимым
В OLS есть, но надо подстраиваться.
With ESI (Edge Side Includes), pages may be served from cache for logged-in users.
ESI allows you to designate parts of your dynamic page as separate fragments that are then assembled together to make the whole page. In other words, ESI lets you “punch holes” in a page, and then fill those holes with content that may be cached privately, cached publicly with its own TTL, or not cached at all. WpW: Private Cache vs. Public Cache
💡: You can turn shortcodes into ESI blocks. Replace [shortcodeA att1="val1" att2="val2"] with [esi shortcodeA att1="val1" att2="val2"]. Learn More