Skip to content

Instantly share code, notes, and snippets.

@croxton
Last active April 8, 2018 02:24
Show Gist options
  • Save croxton/5212374 to your computer and use it in GitHub Desktop.
Save croxton/5212374 to your computer and use it in GitHub Desktop.
Full page caching with Stash 2.3.8+ and @uri pointer
{!-- compile, parse and cache all nested Stash embeds --}
{stash:embed
    context="@URI"
    name="page_vm"
    file_name="viewmodels:page_vm"
    parse_stage="set"
    refresh="60"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment