I've successfully cached an element with in my layout.ctp:
$this->element('main_menu', array(), array("cache" => array('config'
=> 'default', 'key' => 'unique')));

which results in a cache file named: 'cake_element_unique'

I can't delete this specific cache file using the following code in my
controller, what am I doing wrong?

$key='unique';
Cache::delete($key, $config = 'default');

-- 
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

Reply via email to