ESI in separate PHP thread?
-
Hi I’m evaluating ESI for our membership site.
Logged out experience simply uses full page caching for most pages.
For logged-in, some areas of the site contain data pertinent to the logged-in user (name, profile and account options etc).
Whilst I’ve got this section serving as privately cached via the esi:include tag it seems to operate in its own PHP thread so initially had no knowledge of WordPress. This meant I had to require wp-load.php to get the include to appear on site. (it was throwing a fatal error otherwise).
The issue with that though, is the ESI include then doesn’t have any idea what post type has called it so I lose my breadcrumbs and some other output info that relies on post type detection.
I’d prefer not to transfer this into a shortcode if at all possible.
Am I doing something wrong? Our hosting company were really helpful at getting it set up but they drew a blank at this stage.
- The topic ‘ESI in separate PHP thread?’ is closed to new replies.