debug 0 Cache.disable Cache.check 1 Cache.disable was set to false. However, I reading it returns empty string....
On Mar 22, 11:26 pm, gremlin <[email protected]> wrote: > Do you have debug set to 0? If you are seeing the query log then you > likely don't and with a setting of anything higher than 0 the cache is > cleared on each call to the action. > > On Mar 22, 2:27 pm, "André von Arx" <[email protected]> wrote: > > > > > > > > > I've tried to cache a controller action without success. > > > Here are the settings I've used for cakephp 1.3.7: > > > === core.php: > > > Cache::config('default', array( > > 'engine' => 'File', // required > > 'duration'=> 3600, // optional > > 'probability'=> 100, // opt > > 'path' => '/usr/local/www/locavores.co/www/dev/app/tmp/cache/', > > 'prefix' => 'cake_', // optional > > 'lock' => false, // optional > > 'serialize' => true // optional > > )); > > > // path direcotory is writable > > > Configure::write('Cache.check', true); > > Configure::write('Cache.disable', false); > > > === controller > > > var $helpers = array('Form','Formhint','Time','Cache'); > > > var $cacheAction = array( > > 'getRandomImagesG24' => '48000' > > ); > > > function getRandomImagesG24() { > > $this->cacheAction = true; > > return $this->Image->getRandomImagesG24(); > > > } > > > According to the SQL-Log the Image->getRandomImagesG24 being called > > for each controller action call (getRandomInagesG24). > > > Any hints or suggestions? > > -- > > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > > belohnen Sie mit bis zu 50,- Euro!https://freundschaftswerbung.gmx.de -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
