What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi, I have always troubles seeing changes on twig templates. What are your best practices? Using `np

U01F7P3D9NH
U01F7P3D9NH Posts: 60 🧑🏻‍🚀 - Cadet

Hi, I have always troubles seeing changes on twig templates. What are your best practices? Using npm run yves and cache clean are not reliable. Thanks for any suggestion!

Comments

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet

    You can try disabling twig cache locally by putting the following in your config_local.php file

    $config[TwigConstants::ZED_TWIG_OPTIONS] = [
        'cache' => false,
    ];
    $config[TwigConstants::YVES_TWIG_OPTIONS] = [
        'cache' => false,
    ];