ESI Shortcode Not Rendering on Cached Page
-
Hi,
I have the following setup:
- ESI server is enabled
- ESI WordPress plugin is activated
- The page is cached
I inserted ESI into my shortcode like this: [esi ljo_events]
The HTML returned on the page looks like this:
<!-- lscwp esi-shortcode -->
<include src="/?lsesi=esi&_control=public%2Cno-vary&esi=WyJsam9fZXZlbnRzIl0%3D&_hash=c7ae59ecfadc7626902a7d450183f36e" cache-control="public,no-vary"></include>
<!-- lscwp esi-shortcode esi end -->So it renders very quickly, but it still only shows the <include> tag.
If I access the ESI block URL directly like this:
https://mydomain.com/?lsesi=esi&_control=public,no-vary&esi=WyJsam9fZXZlbnRzIl0%3D&_hash=c7ae59ecfadc7626902a7d450183f36eThen I get the full HTML content of the block.
It seems like the ESI shortcode is not being processed inside the cached page.
Does anyone know why the shortcode does not render the block directly when the page is cached?
Thank you for your help!
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.

