<p>Mutagen should not be used when using WSL2.</p>
<p>The issue for the slow load was that the files were stored outside of the WSL2 filesystem.</p>
<p>Everything loads like lightning now.</p>

CC BY-SA 4.0
2023-03-10T16:34:43.337Z
2023-03-10T16:34:43.337Z
darkbasic
<p>This is related to <a href="https://craftcms.stackexchange.com/questions/40555/changes-to-twig-template-take-over-20s-to-propagate">a previous question</a>.</p>
<p>When I have mutagen enabled in DDEV, it takes around 20 seconds for any changes to propagate. Even things as simple as updating a few lines of text in a twig file take this long.</p>
<p><strong>Example:</strong></p>
<p>Update _entry.twig (make a small update to {{ entry.title }}, changing it to {{ entry.postDate | date('d M Y') }})</p>
<pre><code>{% extends &quot;_layout.twig&quot; %}

{% block content %}
 &lt;h1 class=&quot;text-4xl text-black font-display my-4&quot;&gt;{{entry.title }}&lt;/h1&gt;

 &lt;time class=&quot;text-sm block pb-4&quot; datetime=&quot;{{ entry.postDate | date('Y-m-d') }}&quot;&gt;{{ 
entry.postDate | date('d M Y') }}&lt;/time&gt;
{% endblock %}
</code></pre>
<p>Changed to:</p>
<pre><code>{% extends &quot;_layout.twig&quot; %}

{% block content %}
 &lt;h1 class=&quot;text-4xl text-black font-display my-4&quot;&gt;{{ entry.postDate | date('Y-m-d') }}&lt;/h1&gt;

 &lt;time class=&quot;text-sm block pb-4&quot; datetime=&quot;{{ entry.postDate | date('Y-m-d') }}&quot;&gt;{{ 
entry.postDate | date('d M Y') }}&lt;/time&gt;
{% endblock %}
</code></pre>
<p>Takes over 20 seconds to be recognized.</p>
<p>Is there a way to speed up mutagen when used in a DDEV context with Craft CMS?</p>
<p>I don't want to disable mutagen because then everything in the control panel takes over 10 seconds to load.</p>

<craft4><ddev>
Mutagen in DDEV Making Craft CMS Slow to Propagate
# Mutagen in DDEV Making Craft CMS Slow to Propagate

(Asked by: username_0 on 2023-03-08)

This is related to a previous question.
When I have mutagen enabled in DDEV, it takes around 20 seconds for any changes to propagate. Even things as simple as updating a few lines of text in a twig file take this long.
Example:
Update _entry.twig (make a small update to {{ entry.title }}, changing it to {{ entry.postDate | date('d M Y') }})
{% extends "_layout.twig" %}

{% block content %}
 {{entry.title }}

 {{ 
entry.postDate | date('d M Y') }}
{% endblock %}

Changed to:
{% extends "_layout.twig" %}

{% block content %}
 {{ entry.postDate | date('Y-m-d') }}

 {{ 
entry.postDate | date('d M Y') }}
{% endblock %}

Takes over 20 seconds to be recognized.
Is there a way to speed up mutagen when used in a DDEV context with Craft CMS?
I don't want to disable mutagen because then everything in the control panel takes over 10 seconds to load.

**Tags:** craft4, ddev

---

## 1 answers

### Answer by username_0 on 2023-03-10. Score: 1

Mutagen should not be used when using WSL2.

The issue for the slow load was that the files were stored outside of the WSL2 filesystem.

Everything loads like lightning now.


---

