ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Capturing post processed template into PHP variable

April 11, 2013 12:13pm

Subscribe [1]
  • #1 / Apr 11, 2013 12:13pm

    chrisd66

    2 posts

    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?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases