Search code examples
phpcakephpcaching

Disabling cache on CakePHP 2.4.4


I've read a bunch of Stackoverflow questions with the same goal: disabling cache in the CakePHP framework. However, none of these solutions has worked for me unfortunately.

My core.php now has these values, but the caching of controllers and views is still unbearably long for development:

Configure::write('debug', 2);
Configure::write('Cache.disable', true);
$duration = '+1 day';
if (Configure::read('debug') > 0) {
    $duration = '+1 seconds';
}

Solution

  • Applications/MAMP/bin/php/php5.5.3/conf/php.ini and may be in /Applications/MAMP/conf/php5.5.3/php.ini

    comment out the line in this block! [OPcache]

    spent three days on this