I use the cache class in a more 'hands-on' approach then the manual
states:
In config/core.php i have:
Configure::write('Cache.disable', false);
Configure::write('Cache.check', true); <-- i've set to both true and
false, no diff.
Cache::config('configname', array('engine' => 'File',
                                'duration' => (3600 * 24 * 7), // 7
days
                                'prefix' => 'configname_',
                                ));
(i use multiple configs for different things as some need to be
cleaned out when 'external situations' happen, so i can remove them
based on their prefix)
------------------------------------------
Throughout the controllers, etc. I use the cache class like so:
Cache::read($key, 'configname');
Cache::write($key, $data, 'configname');
------------------------------------------
I'm using cake version: 1.2.1.8004

When i have debug set to > 0, everything seems to be working just
fine.
When i set it to 0, the cache will be read if the cache file it is
present, but it won't write or overwrite the cache file.
I did a simple test, and put an echo(); exit(); in cake/libs/
cache.php:

229 function write($key, $value, $config = null) {
230 echo('in cache::write'); exit();

to see if the function was even being called.
With debug set to 1, it would show up.
With debug set to 0, it wouldn't as if it wasn't even called.

So, my question is.... What am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to