Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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';
}
like image 581
Moritz Avatar asked Dec 30 '13 12:12

Moritz


2 Answers

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

like image 120
user3163128 Avatar answered Sep 30 '22 15:09

user3163128


in app/Config/core.php

enable Configure::write('Cache.disable', true);

worked for me. after this no models and persistent cache generating.

like image 42
sohan Avatar answered Sep 30 '22 15:09

sohan