Right, after further digging and cursing it seems that the $duration
variable inside the memcache->write function is getting messed with.

In my core.php file I have set the caching to 3600

However if I dump the $duration variable inside the $memcache->write
function it shows up as 86313600

This causes memcached to ignore it because:

http://nz.php.net/manual/en/memcached.expiration.php
"... In all such cases, the actual value sent may either be Unix time
(number of seconds since January 1, 1970, as an integer), or a number
of seconds starting from current time. In the latter case, this number
of seconds may not exceed 60*60*24*30 (number of seconds in 30 days);
if the expiration value is larger than that, the server will consider
it to be real Unix time value rather than an offset from current
time...."

So, 86313600 is greater then (60*60*24*30) so memcached looks at it
unix time, which is far far older than the current time ( 26-09-1972 )
so the item isn't cached.

Phew :-)

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