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?

2 Answers 2


Are you using PHP 5.5? If so, opCache is enabled by default and that’s probably causing your issue.


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.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

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.