WordPress caching in development

The problem was to do with MAMP turning on OPCache by default:

https://stackoverflow.com/questions/19073270/stop-caching-for-php-5-5-3-in-mamp