Drupal - MAMP Pro with PHP 7 OPcode caching
Just make sure that the OPCache is selected as caching mechanism in MAMP preferences.
- Click on "Preferences".
- Click on the "PHP" tab.
- Select "OPcache" under "Cache" field.
The UI is slightly different for Mamp Pro. Some may find this screenshot helpful.
More recent versions of MAMP Pro have a different layout for the UI.