1

I'm using stash embed, everything inside the embed gets cached, is there any way for this not to happen?

It's a major pain when changing what's in the embed template and not seeing the change happen.

{!-- Main Template --}
{exp:stash:set name="_foobar_id" match="#^\S+#" default="{snippet}"}
    {snippet}
{/exp:stash:set}

{stash:embed name="_foobar"} 

{!-- Inside the stash embed  --}
<div>
   {stash:_foobar_id}
</div>

1 Answer 1

3
{stash:embed name="_foobar" replace="yes"} 
1
  • Ha ha! You may want to remove that parameter before deploying to production. Or make the value a global variable in the config for your environment. E.g. {stash:embed name="_foobar" replace="{global:stash_replace}"} Feb 27, 2019 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.