<p>For those interested:</p>

<p><strong>Disabling opCache in Mamp:</strong></p>

<p>Go to: <code>/Applications/MAMP/bin/php/php5.5.3/conf/php.ini</code>.</p>

<p>OP Cache is at the bottom of the file.</p>

<p>Comment out the following lines with a semicolon <code>;</code>:</p>

<pre><code>[OPcache]
;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
;  opcache.memory_consumption=128
;  opcache.interned_strings_buffer=8
;  opcache.max_accelerated_files=4000
;  opcache.revalidate_freq=60
;  opcache.fast_shutdown=1
;  opcache.enable_cli=1
</code></pre>

CC BY-SA 3.0
2014-06-17T17:20:27.417Z
2014-06-17T17:20:27.417Z
KSPR
<p>Are you using PHP 5.5?  If so, <a href="http://www.php.net//manual/en/book.opcache.php">opCache</a> is enabled by default and that’s probably causing your issue.</p>

CC BY-SA 3.0
2014-06-17T16:03:11.563Z
2014-06-17T16:03:11.563Z
Brad Bell
<p>I use template inheritance:</p>

<p>In <code>_layout.html</code> every other template is loaded with <code>{% block content %}{% endblock %}</code></p>

<p>The problem: <code>_layout.html</code> never reloads. I changed the CSS path in the head tag of <code>_layout.html</code> but I never <em>see</em> the change reflected. Why?</p>

<ul>
<li>restarted MAMP (cache is already disabled)</li>
<li>restarted computer</li>
<li>emptied every cache I know of</li>
<li>cache tags aren't used</li>
<li>used all different browsers</li>
<li>deleted the storage/runtime folder</li>
</ul>

<p>The above steps have no effect, and any changes on <code>_layout.html</code> don't appear to do anything. Why might this be?</p>

<templating><cache>
Why does my base template never reload?
# Why does my base template never reload?

(Asked by: username_0 on 2014-06-17)

I use template inheritance:

In `_layout.html` every other template is loaded with `{% block content %}{% endblock %}`

The problem: `_layout.html` never reloads. I changed the CSS path in the head tag of `_layout.html` but I never *see* the change reflected. Why?

* restarted MAMP (cache is already disabled)
* restarted computer
* emptied every cache I know of
* cache tags aren't used
* used all different browsers
* deleted the storage/runtime folder

The above steps have no effect, and any changes on `_layout.html` don't appear to do anything. Why might this be?

**Tags:** templating, cache

---

## 2 answers

### Answer by username_1 on 2014-06-17. Score: 12 | Accepted answer

Are you using PHP 5.5? If so, [opCache](http://www.php.net//manual/en/book.opcache.php) is enabled by default and that’s probably causing your issue.


---

### Answer by username_0 on 2014-06-17. Score: 8

For those interested:
Disabling opCache in Mamp:
Go to: /Applications/MAMP/bin/php/php5.5.3/conf/php.ini.
OP Cache is at the bottom of the file.
Comment out the following lines with a semicolon ;:
[OPcache]
;zend_extension="/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212/opcache.so"
;  opcache.memory_consumption=128
;  opcache.interned_strings_buffer=8
;  opcache.max_accelerated_files=4000
;  opcache.revalidate_freq=60
;  opcache.fast_shutdown=1
;  opcache.enable_cli=1


---

