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';
}
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
in app/Config/core.php
enable Configure::write('Cache.disable', true);
worked for me. after this no models
and persistent
cache generating.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With