There is a bug when apc_cache is used.  This leads to cached entries
which will never expire.

Current code apc.php
        function write($key, &$value, $duration) {
                $expires = time() + $duration;
                apc_store($key.'_expires', $expires, $duration); // here is a 
bug.
                return apc_store($key, $value, $duration);
        }

as per PHP documentation there are just 3 parameters. $ttl is number
of seconds (duration). Not time()+ duration:
bool apc_store ( string $key , mixed $var [, int $ttl= 0 ] )

Vlad

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