tollmanz/wordpress-memcached-backend — pull request #35 by tollmanz (2014-07-05 21:12:59+00:00)
Title: Expiry Times

To handle expiry times over 30 days, +time() needs to be added to the expiry when setting it in $this->m->add...

I think it should be handled in this drop-in because APC and other cache handlers do not have this limitation. Therefore adding time() in a theme/plugin when using wp_set_cache() would add ~44 years to all expiries on other cache systems.

Fortunately you can add time() to expiries that are any length because it's meant to handle them all, event time()+0 would work fine. so a blanket fix can be applied.

I'll try to find the time() to make a pull request.

Read more: http://www.php.net/manual/en/memcached.expiration.php