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}"}

{stash:embed name="_foobar"} 

{!-- Inside the stash embed  --}

1 Answer 1

{stash:embed name="_foobar" replace="yes"} 
  • 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 and acknowledge you have read our privacy policy.

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