Is there a way to capture in PHP a post processed version of an embed?
I have a footer embed template. There are 2 rendered states for the footer, user logged in and not. What I would like to do is cache the rendered version of the footer so that it does not need to be reprocessed on every page. The only time that EE processing needs to be done to rerender the template is when the user changes their login state.
I cannot create 2 footers and then do template caching them through EE because the footer contains information unique to each user so the caching needs to be done on per session basis and controlled through PHP.
So what I would like to do is capture the rendered state of the footer into a PHP variable and then store it into memcache. Is this possible?